awk/testdir/t.gsub4

5 lines
92 B
Plaintext

length($1) == 0 { next }
{gsub("[" $1 "]","(&)"); print}
{gsub("[" $1 "]","(\\&)"); print}