September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
18
Task/Program-name/AWK/program-name.awk
Normal file
18
Task/Program-name/AWK/program-name.awk
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# syntax: TAWK -f PROGRAM_NAME.AWK
|
||||
#
|
||||
# GAWK can provide the invoking program name from ARGV[0] but is unable to
|
||||
# provide the AWK script name that follows -f. Thompson Automation's TAWK
|
||||
# version 5.0c, last released in 1998 and no longer commercially available, can
|
||||
# provide the AWK script name that follows -f from the PROGFN built-in
|
||||
# variable. It should also provide the invoking program name, E.G. TAWK, from
|
||||
# ARGV[0] but due to a bug it holds the fully qualified -f name instead.
|
||||
#
|
||||
# This example is posted here with hopes the TAWK built-in variables PROGFN
|
||||
# (PROGram File Name) and PROGLN (PROGram Line Number) be added to GAWK by its
|
||||
# developers.
|
||||
#
|
||||
BEGIN {
|
||||
printf("%s -f %s\n",ARGV[0],PROGFN)
|
||||
printf("line number %d\n",PROGLN)
|
||||
exit(0)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue