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

7 lines
158 B
Plaintext

NF > 0 && match($NF, $1) {
print $0, RSTART, RLENGTH
if (RLENGTH != length($1))
printf "match error at %d: %d %d\n",
NR, RLENGTH, RSTART >"/dev/tty"
}