6

need help in shell scripting

view full story
linux-howto

http://www.linuxforums.org – Hi , Caan any one plz helpp me in this...' i got a script like this #!/bin/sh sch = 0 echo "enter echo "1.Usch.sh" echo "2.Ssp.sh" echo "3.uscr_final" echo "4.fttp" read sch if [$sch -eq 1] ; then ./Usch.sh else if [$sch -eq 2]; then ./Scp.sh else if [$sch -eq 3]; then ./uscr_final.sh else if [$sch -eq 4]; then ./fttp.sh fi while i am trying to execute this one it is giving the error like else is not matched at he last else statement.. thanks in advance.. (HowTos)