1

Find error in the shell script file

view story
linux-howto

http://www.unix.com – Code: echo "******Select Option:******" echo "1 - script1" echo "2 - script2" echo "3 - script3 " read option echo "You have selected" $option"." if["$option"="1" ] then /scratch/username/script1.sh elif[ "$option"="2" ] then /scratch/username/script2.sh elif[ "$option"="3" ] then /scratch/username/script3.sh else echo "Please try again from given options only." fi It gives following error : Code: line7 if[2=1]: command not found line8 :syntax error (HowTos)