var1=$1 var2=$2 if [ -z "$3" ] then var3=3 fi echo " the third variable $var3"
var1=$1 var2=$2 var3=${var3:-3} echo " the third variable $var3"