source:
trunk/essentials/sys-apps/gawk/test/messages.awk
Last change on this file was 3076, checked in by , 18 years ago | |
---|---|
File size: 365 bytes |
Line | |
---|---|
1 | # This is a demo of different ways of printing with gawk. Try it |
2 | # with and without -c (compatibility) flag, redirecting output |
3 | # from gawk to a file or not. Some results can be quite unexpected. |
4 | BEGIN { |
5 | print "Goes to a file out1" > "out1" |
6 | print "Normal print statement" |
7 | print "This printed on stdout" > "/dev/stdout" |
8 | print "You blew it!" > "/dev/stderr" |
9 | } |
Note:
See TracBrowser
for help on using the repository browser.