Path: 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 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