shithub: trueawk

ref: d7f37646965ee26214da0e1d97f3c1d54349ae2d
dir: /testdir/t.match1/

View raw version
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"
}