On Thursday June 16 2005 21:13, michael wrote: > For some reason out of my control I need to pass the name of an env var > to a bash script and then, within said script, determine the value of > that env var. > > [...] > > I've tried various combos inside the script like > echo ${$1}
That was pretty close, and reading the bash manpage actually helps. Read near the beginning of "Parameter Expansion", there's an explanation of what you want. Try: echo ${!1} -- Got Backup? Jabber: Shadowdancer at jabber.fsinf.de
pgp77SMylXix5.pgp
Description: PGP signature