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

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

gawk 3.1.5

File size: 385 bytes
Line 
1BEGIN {
2 argn = " argument" (ARGC > 1 ? "s" : "")
3 are = ARGC > 1 ? "are" : "is"
4 print "here we have " ARGC argn
5 print "which " are
6 for (x = 0; x < ARGC; x++)
7 print "\t", ARGV[x]
8 print "Environment variable TEST=" ENVIRON["TEST"]
9 print "and the current input file is called \"" FILENAME "\""
10}
11
12FNR == 1 {
13 print "in main loop, this input file is known as \"" FILENAME "\""
14}
Note: See TracBrowser for help on using the repository browser.