awk/testdir/t.split3

5 lines
110 B
Plaintext

{ a = $0 " " $0 " " $0
if ($1 != "")
n = split (a, x, "[" $1 "]")
print n, x[1], x[2], x[3], x[4] }