diff options
Diffstat (limited to 'test/argarray.awk')
-rw-r--r-- | test/argarray.awk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/argarray.awk b/test/argarray.awk new file mode 100644 index 00000000..3911b6e9 --- /dev/null +++ b/test/argarray.awk @@ -0,0 +1,11 @@ +BEGIN { + argn = " argument" (ARGC > 1 ? "s" : "") + are = ARGC > 1 ? "are" : "is" + print "here we have " ARGC argn + print "which " are + for (x = 0; x < ARGC; x++) + print "\t", ARGV[x] + print "Environment variable TEST=" ENVIRON["TEST"] + print "and the current input file is called", FILENAME + print "but this would change if we would have something to process" +} |