Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!uwmcsd1!nic.MR.NET!eta!rscott
From: rscott@eta.unix.ETA.COM (Rich Scott)
Newsgroups: comp.unix.questions
Subject: accessing shell variables from within awk?
Message-ID: <473@diamond.unix.ETA.COM>
Date: 19 Sep 88 20:54:14 GMT
Distribution: na
Organization: ETA Systems Inc., St. Paul, Mn.
Lines: 13


	How can I access a shell variable (to wit, a few environment
variables) from within "awk"? I've tried various combinations of
shell quoting, and whatnot, to no avail. Does any version of awk
have a shortcut to get at it's environment? BTW, I'm running SunOS
3.5, if it matters much.

---
	Rich Scott	     uucp:  {rutgers,amdahl,ihnp4}!meccts!eta!rscott
	ETA Systems	   domain:  rscott@eta.eta.com
	Saint Paul, MN	     arpa:  eta!rscott@uxc.cso.uiuc.edu
					 -or- 	rscott@gonzo.eta.com
	"Heck-a-slammin'"  - S. Easton/P.R. Nelson