awk/testdir/t.re3

7 lines
126 B
Plaintext
Raw Normal View History

2019-06-23 05:13:57 -04:00
{ r1 = $1
r2 = $1 ":"
}
length(r1) && $0 ~ r1 { print $0 " matches " r1 }
length(r1) && $0 ~ r2 { print $0 " matches " r2 }