3

while writing the script getting an error

view full story
linux-howto

http://www.unix.com – while writing a script m not able to convert string into a number therefore it is not picking the write if condition pls help Code: #!/bin/sh echo "this game is about selecting number and getting lucky" echo " the number are 1 2 3 4 5 and 0 to exit" read $a1 if [ "$a1" = 1 ]; then                 echo "NUMBER IS NOT CORRECT" elif [ "$a1" = 2 ]; then                 echo "NUMBER IS NOT CORRECT" elif [ "$a1" = 3 ]; then       & (HowTos)