Program name: Difference between revisions

Content added Content deleted
({{header|AWK}})
Line 7: Line 7:


=={{header|AWK}}==
=={{header|AWK}}==

By convention ARGV[0] contains the name of the script being utilized. However, this behaviour is not reliable and it is not consistent across systems. Some systems may report the name of the awk interpreter, rather than the name of the script and pathname components may be included.


<lang awk>BEGIN { print "The invocation name is:" ARGV[0] }</lang>
<lang awk>BEGIN { print "The invocation name is:" ARGV[0] }</lang>