Sunday, February 12, 2006

${var-default} If var is not set, use a default

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

0 Comments:

Post a Comment

<< Home