Date: Mon, 18 Dec 2000 04:10:36 From: "Aaron Hill" <hillaa@hotmail.com> To: davidd@datasphereweb.com Cc: questions@freebsd.org Subject: Re: Script: Variable substition within a variable? Message-ID: <F157QBRbpOmK1iY1VBn00000efe@hotmail.com>
next in thread | raw e-mail | index | archive | help
Thanks for your prompt reply. >I think what you're looking for is something along the lines of: >echo "Your name is " $fileone I'm afraid that doesn't work. It seems that variable substitution only works to one level - maybe this is for the best too. What I mean is the contents of $fileone is $name so the shell does the right thing to substitute $fileone with $name in the output but I'd like it to do the same again and substitute $name with Aaron. I can picture that this might not be do-able because it would be resource consuming if the shell was designed to recurse like this. Thanks again. Aaron Hill _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F157QBRbpOmK1iY1VBn00000efe>