qse/ase/cmd/awk/t43.awk
2008-03-21 03:49:53 +00:00

4 lines
125 B
Awk

#BEGIN { t = "abc"; gsub ("abc", "[&]", t); print t; }
{ gsub ("abc", "ABC"); print $0; }
{ gsub (/ABC/, "XYZ"); print $0; }