awk/testdir/t.re5

4 lines
83 B
Plaintext

BEGIN { for (i = 0; i <= 9; i++) r[i] = i }
{ for (i in r) if ($0 ~ r[i]) print }