|
Put quote around the variable argument in the if staement. eg
if [ ! -e "$6$5" ]
The reason you get an error in your own code when $5 and $6 are both empty is that the '-e' test requires an argument. By putting quotes round it you force an argument of a null string (rather than no argument at all) when $5 and $6 are both empty.
Last edited by Unbeliever; 10-28-2005 at 11:06 AM..
|