bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gawk] Can a GAWK script access its full path\name at "run-time?


From: Jim_Dailey
Subject: [bug-gawk] Can a GAWK script access its full path\name at "run-time?
Date: Mon, 11 May 2015 11:28:54 -0500

I am trying to find a way for the AWK *script* that is executing to access its
own path/name. I was hoping that:
 
    gawk –f c:\path\example.awk "BEGIN{print ARGV[0]}"
 
would print:
 
    c:\path\example.awk
 
But, of course it does not. Suggestions?
 
Thanks and regards,
Jim
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]