Sunday, February 12, 2006

${var=default} If var is not set, set it to default

$ echo $username
null
$ echo ${username=`whoami`}
islandjoe
$ echo $username
islandjoe

0 Comments:

Post a Comment

<< Home