Possible Duplicate:
How to tell if a string is not defined in a bash shell script?
What’s the best way to check that environment variables are set in Unix shellscript
I'm trying my hand at Unix shell scripting for the first time and in a script I'm working on now, I want 2 of the 3 arguments to my script to be optional. However, if the user doesn't enter the arguments, I need to use default values. How can I properly say something that basically means:
$argument = $2
if($argument == "")
$argument = "defaultVal"
Thanks!