awk/testdir/t.split9

9 lines
145 B
Plaintext
Raw Normal View History

2019-06-23 05:13:57 -04:00
{
n = split ($0, x, FS)
if (n != NF)
print "botch at ", NR, n, NF
for (i=1; i<=n; i++)
if ($i != x[i])
print "diff at ", i, x[i], $i
}