[ILUG] Parameter expansion in the shell
Giulivo Navigante
giulivo.navigante at katamail.com
Wed Jan 16 18:08:57 GMT 2008
Braun Brelin wrote:
> Hello all,
>
> I'm trying to figure out what differences there are between the following:
>
> $Foo
>
> ${Foo}
playing with some shell scripts I discovered this some months ago:
# export VAR=val
# echo $VAR
val
# echo $VAR-X
val-X
# echo $VAR_X
# echo ${VAR}_X
val_4
which seems to be helpful when you're going to use variables and they're
a mixed or accompained by strings
but I don't know much more
--
Giulio Fidente
"What we have done for ourselves alone dies with us;
what we have done for others and the world remains."
More information about the ILUG
mailing list