qse/ase/test/awk/t44.awk

4 lines
139 B
Awk
Raw Normal View History

2006-09-13 14:16:35 +00:00
#BEGIN { t = "abc"; gsub ("abc", "[&]", t); print t; }
2006-09-14 06:40:06 +00:00
{ c=$0; print sub ("abc", "ABC", c); print c; }
{ sub (/ABC/, "XYZ", c); print c; }