awk/testdir/t.delete0

12 lines
223 B
Plaintext
Raw Normal View History

2019-06-23 05:13:57 -04:00
NF > 0 {
n = split($0, x)
if (n != NF)
printf("split screwed up %d %d\n", n, NF)
delete x[1]
k = 0
for (i in x)
k++
if (k != NF-1)
printf "delete miscount %d elems should be %d at line %d\n", k, NF-1, NR
}