awk/testdir/t.roff
Arnold D. Robbins d6c466c367 Extract testdir.
2019-06-23 03:13:57 -06:00

24 lines
251 B
Plaintext

NF > 0 {
for (i = 1; i <= NF; i++) {
n = length($i)
if (n + olen >= 60) {
print oline
olen = n
oline = $i
} else {
oline = oline " " $i
olen += n
}
}
}
NF == 0 {
print oline
olen = 0
}
END {
if (olen > 0)
print oline
}