1

sh file: READ (menu) but now run with option

view story
linux-howto

http://www.unix.com – I have a script which uses READ to detect choice of menu option...now I want to change the script without doing whole rewrite such that when user runs ./script.sh 5 it would execute menu option 5 rather than user running ./script.sh waiting for it to load and then pressing "5 enter" Is it possible to keep both functionalities (user can select from menu if no variable is passed or user can pass option upon running).... Thanks! (HowTos)