xref: /freebsd/contrib/one-true-awk/testdir/t.sub0 (revision c7a063741720ef81d4caa4613242579d12f1d605)
1
2{sub(/[aeiou]/, "foo"); print}
3{sub("[aeiou]", "foo"); print}
4
5{gsub(/[aeiou]/, "foo"); print}
6{gsub("[aeiou]", "foo"); print}
7
8{sub(/[aeiou]/, "&foo"); print}
9{sub("[aeiou]", "&foo"); print}
10
11{gsub(/[aeiou]/, "&foo"); print}
12{gsub("[aeiou]", "&foo"); print}
13
14{sub(/[aeiou]/, "\&foo"); print}
15{sub("[aeiou]", "\&foo"); print}
16
17{gsub(/[aeiou]/, "\&foo"); print}
18{gsub("[aeiou]", "\&foo"); print}
19