if [[ x"$a" == x ]]; then # $a was empty, so do something fi #### perl -le print\ \''hello world!\n'\'