source: trunk/essentials/sys-apps/gawk/test/psx96sub.awk

Last change on this file was 3076, checked in by bird, 18 years ago

gawk 3.1.5

File size: 201 bytes
Line 
1BEGIN {
2 text = "here is some text"
3 repl = "<FOO&BAR \\q \\ \\\\ \\& \\\\& \\\\\\&>"
4 printf "orig = \"%s\", repl = \"%s\"\n", text, repl
5 sub(/some/, repl, text)
6 printf "result is \"%s\"\n", text
7}
Note: See TracBrowser for help on using the repository browser.