echo Enter a line of characters read -s A B C if test $A = Don\'t -o $A = don\'t; then exit 1; fi echo $A echo $B if test "$C" != ""; then echo $C; else echo No third variable ; fi