Stupid bash scripting question
Cole Tuininga
colet at code-energy.com
Wed Aug 24 09:44:00 EDT 2005
Ok - I'm sure the answer to this is simple, but I can't seem to figure
the darned thing out. In my defense, it's extremely rare that I do any
shell scripting. 8)
Basically, the deal is that I have a variable that contains a string
such as "~username". I'd like to actually expand that to the user's
home directory.
In other words, if I have something like:
user="username"
f="~${user}"
I'd like $f to end up with the path to username's actual home. As it
is, it just has the value "~username". What magic do I need to do on my
f assignment line?!
--
"Now I need a pint and a half hour of bzflag."
-Eric on the BLU Mailing list
Cole Tuininga
Lead Developer
Code Energy, Inc
colet at code-energy.com
PGP Key ID: 0x43E5755D
More information about the gnhlug-discuss
mailing list