Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!topaz.rutgers.edu!ron From: ron@topaz.rutgers.edu (Ron Natalie) Newsgroups: comp.unix.wizards Subject: Re: Building Variable Names in Bourne Shell Message-ID: Date: 22 Mar 88 22:36:22 GMT References: <12565@brl-adm.ARPA> Organization: The Office of Mismanagement and Bean Counting Lines: 15 Try eval... onestring="A" # set the values of arbitrary strings twostring="B" threestring="C" for string in one two three # loop thru string sets do var="${string}string" # var contains the name of the string # I wish to get access to echo \$$var=`eval echo \\$$var` done