home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15159 < prev    next >
Encoding:
Text File  |  1993-01-04  |  845 b   |  21 lines

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