A question on [a,ga,na]wk.

Walter Bays walter at garth.UUCP
Fri Dec 14 12:53:59 AEST 1990


In article <BT00.90Nov28155200 at PL118d.?> bt00 at PL118d.? (Binod K. Taterway) writes:
>Is it possible to make use of c-shell variables in [g,n]awk scripts.

I often do it like...

#!/bin/ksh
Tempfile="c4sim.tmp$$"
...
nawk '
    ...
    print ... >$Tempfile
    ...
    ' "Tempfile=$Tempfile" "Version=$Version" $*

---
Walter Bays		Phone (415) 852-2384	FAX (415) 856-9224
EMAIL walter at apd.ingr.com
USPS: Intergraph APD, 2400 Geng Road, Palo Alto, California 94303
-- 
Walter Bays		Phone (415) 852-2384	FAX (415) 856-9224
EMAIL walter at apd.ingr.com	or	...!ingr!apd!walter
USPS: Intergraph APD, 2400 Geng Road, Palo Alto, California 94303



More information about the Comp.unix.shell mailing list