awk/testdir/t.split9a

10 lines
164 B
Plaintext
Raw Normal View History

2019-06-23 05:13:57 -04:00
BEGIN { FS = "a" }
{
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
}