6

Positional Paramenters Shell Scripting

view full story
linux-howto

http://www.unix.com – Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: STEP 1: Create a Bash shell script (myscript) inside the a2 directory. The script should allow the user to pass a 3 digit number to this script when it runs. Make sure that the parameter/argument entered by the user consists of exactly 3 numbers. If it’s not 3 numbers, then give an appropriate error message and exit with appropriate exit status. If the parameter entered was a 3 digit number, then display it. (HowTos)