Coughee's script
public shellscript v1 · immutableecho "Welcome to my script, (1) to present date, (2) to search for a specified file, (3) Compile a specified C++ program" read -r choice echo "You just chose..." $choice case $choice in 1) date +"%d-%b-%Y" ;; 2) echo " Please input your filename " if [ -f $fn ] then cat $fn exit 0 else exit 1 fi ;; 3) echo " Please input your filename of the sourcecode " if [ -f $sc ] then g++ $sc exit 0 else exit 1 ;; *) echo "Sorry, please RTFM and try again." ;; esac done