qse/ase/test/awk/t43.awk

4 lines
125 B
Awk
Raw Normal View History

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