http://www.linuxforums.org – I create a bash script with using case syntax. My bash script option must be "./script user hello". Below is the content of the script. Quote: user=`echo "$1" | sed "s/$/@foo.com/"` case $1 in *) echo "From: $user TEST1" > /var/log/test1 echo -n " TEST2" > /var/log/test2 ;; esac I want to modify it and do something like this. If I run the script ./script user (without the word "hello"), it will echo -n " TEST2" > /var/log/test2, if I run the script ./script user hello, it will return echo -n " TEST1". I'm thinking if I can do this using if syntax though I'm not sure and still checking if can do this. Ant advise? (HowTos)