home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!usc!cs.utexas.edu!asuvax!elam.mdl.sandia.gov!cs.sandia.gov!jhgreen
- From: jhgreen@cs.sandia.gov (Jethro H. Greene)
- Subject: How do you use a variable of variable name?
- Message-ID: <1992Dec27.191016.4126@cs.sandia.gov>
- Followup-To: poster
- Originator: jhgreen@cs.sandia.gov
- Sender: jhgreen@cs.sandia.gov
- Organization: Sandia National Laboratories, Albuquerque, NM
- Date: Sun, 27 Dec 92 19:10:16 GMT
- Lines: 8
-
- I have a need to use a variable where the name of the variable is itself a
- variable. For example, if I have the name of a variable in var_name, I would
- like to be able to echo $$var_name. However, I can't figure out the correct
- punctuation. Can anyone help?
-
- Thanks in advance,
- Jethro Greene,
- Sandia National Laboratories, Albuquerque, NM
-