shithub: trueawk

ref: 07f04384230b0c4cb8c47da7b5a6aebdea992b1e
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"
}