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

4 lines
139 B
Awk

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