shithub: trueawk

ref: 94e4c04561f7b9c2a3e7ef498fbfe7ce5b20ed40
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"
}