1

sub arguments to shell script

view story
linux-howto

http://www.unix.com – Hi, I have a shell script, when run it i get a prompt to enter arguments say 1 for doing my next task otherwise q for quit. What I am trying to do is run the shell script with the argument passed in however it does not seem to work. This is what I did ./test.sh 1 Instead it printed the line to enter the command test.sh ....some functions ... Print "1) all Print "q) quit Print Print-n "Command: read reply case $reply in 1*) while fun do : done return 0 ;; q*) return 1; esac ... So entering 1 directly should allow me to go to the function. I (HowTos)