awk/testdir/t.getline1

11 lines
117 B
Plaintext
Raw Normal View History

2019-06-23 05:13:57 -04:00
{ x = $1
for (i = 1; i <= 3; i++)
if (getline)
x = x " " $1
print x
x = ""
}
END {
if (x != "") print x
}