Path: utzoo!utgpu!cunews!spock!mcneild!mcneild From: mcneild@mcneild.Software.Mitel.COM (Doug McNeil) Newsgroups: comp.unix.shell Subject: Evaluating a nexted variable Message-ID: Date: 10 Nov 90 18:44:17 GMT Sender: mcneild@spock Distribution: na Organization: /home/hci/mcneild/.organization Lines: 23 Hello, A friend needed to get the value of a variable which was contained in a variable: $a=b $c=a Determing the value of "a" given "c". I came up with: $eval z="$`echo $c`" $echo $z Not being a shell guru, I expect there are lots of better ways to do this. Any comments? -- -----------------------------------------------------------------------------> "Smokin" Doug McNeil | ...!uunet!mitel!spock!mcneild Mitel Corporation, Kanata, Ontario | (613)592-2122 "I know a lot of fancy dancers.." - Cat Stevens |