qse/ase/test/awk/t44.awk

4 lines
141 B
Awk
Raw Normal View History

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