Article View: comp.unix.shell
Article #1782environmental vars in nawk
From: afsijsf
Date: Thu, 15 Nov 1990 15:06
Date: Thu, 15 Nov 1990 15:06
13 lines
779 bytes
779 bytes
How do you reference an environmental variable (which
happens to be a pathname) inside a nawk script? eg:
setenv CMCARC=/a/b/c
The awk script could be like this:
BEGIN { aa = $CMCARC
etc...
}
Please send e-mail reply.. thanks
Technical Details
Message-ID:
<1990Nov15.150642.28752@cid.aes.doe.CA>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!zephyr.ens.tek.com!uw-beaver!ubc-cs!news-server.csri.toronto.edu!clyde.concordia.ca!cidsv01.cid.aes.doe.CA!cidsv01.cid.aes.doe.CA!afsijsfShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!zephyr.ens.tek.com!uw-beaver!ubc-cs!news-server.csri.toronto.edu!clyde.concordia.ca!cidsv01.cid.aes.doe.CA!cidsv01.cid.aes.doe.CA!afsijsf From: afsijsf@cidsv01.cid.aes.doe.CA Newsgroups: comp.unix.shell Subject: environmental vars in nawk Message-ID: <1990Nov15.150642.28752@cid.aes.doe.CA> Date: 15 Nov 90 15:06:42 GMT Sender: afsijsf@cid.aes.doe.CA (Serge Filion) Reply-To: afsijsf@cidsv01.cid.aes.doe.CA () Distribution: na Organization: Environment Canada Lines: 13