passing arguments to awk scripts

Tom Christiansen tchrist at convex.COM
Sun Mar 10 18:21:24 AEST 1991


>From the keyboard of datta at vacs.uwp.wisc.edu (David Datta):
:Can it be done? Is there a way I can address a 
:command line argument within the script?

1. Sure -- just run it through the awk-to-perl translator. 

2. Actually, gawk and nawk will also let you get at them, although
   awk won't.  Check your man page; if all you have is awk, return
   to step one.  You might even find some other features there. :-)

--tom



More information about the Comp.unix.misc mailing list