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

7 lines
126 B
Plaintext

{ r1 = $1
r2 = $1 ":"
}
length(r1) && $0 ~ r1 { print $0 " matches " r1 }
length(r1) && $0 ~ r2 { print $0 " matches " r2 }