xref: /freebsd/contrib/one-true-awk/testdir/t.sub0 (revision fe6060f10f634930ff71b7c50291ddc610da2475)
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