Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!pa.dec.com!nntpd.lkg.dec.com!engage!ynotme.enet.dec.com!wallace From: wallace@ynotme.enet.dec.com (Ray Wallace) Newsgroups: comp.unix.shell Subject: Re: Passing a var thru a file Message-ID: <1991Jun18.192754.20798@engage.pko.dec.com> Date: 18 Jun 91 19:23:22 GMT Sender: newsdaemon@engage.pko.dec.com (USENET News Daemon) Distribution: na Organization: Digital Equipment Corporation Lines: 19 In article <1991Jun18.153222.20836@cid.aes.doe.CA>, afsipmh@cidsv01.cid.aes.doe.CA writes... >Say i have a file that (just for the sake of this question) contains >just one word: >$ENVAR It actualy isn't peculuar to files. >var=`cat file` >echo $var #gives (literally) $ENVAR Try eval echo $var --- Ray Wallace (INTERNET,UUCP) wallace@oldtmr.enet.dec.com (UUCP) ...!decwrl!oldtmr.enet!wallace (INTERNET) wallace%oldtmr.enet@decwrl.dec.com ---