Passing a var thru a file

Ray Wallace wallace at ynotme.enet.dec.com
Wed Jun 19 05:23:22 AEST 1991


In article <1991Jun18.153222.20836 at cid.aes.doe.CA>, afsipmh at 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 at oldtmr.enet.dec.com
		(UUCP)		...!decwrl!oldtmr.enet!wallace
		(INTERNET)	wallace%oldtmr.enet at decwrl.dec.com
---



More information about the Comp.unix.shell mailing list