HardenedBSD/contrib/awk/test/gsubtest.awk

9 lines
288 B
Awk
Raw Normal View History

1997-10-14 20:17:11 +02:00
BEGIN {
str = "abc"; gsub("b+", "FOO", str); print str
str = "abc"; gsub("x*", "X", str); print str
str = "abc"; gsub("b*", "X", str); print str
str = "abc"; gsub("c", "X", str); print str
str = "abc"; gsub("c+", "X", str); print str
str = "abc"; gsub("x*$", "X", str); print str
}