Question: Name the script args.sh. The script will take any number of command line arguments. The script will print (echo) each of the command line argumentson
- Name the script args.sh.
- The script will take any number of command line arguments.
- The script will print (echo) each of the command line argumentson its own line, and will then print the total number of argumentsentered.
- You should use the special shell variables. One specialvariable contains all the command line arguments. There isanother one that contains the number of command one argumentsentered.
- This script is most easily completed with a for loop, althoughthe task can also be accomplished with a while loop, but youdefinitely need some type of loop since it has to process anunknown number of command line arguments.
For linux. I have not done anything on this. I am in abasic admin linux class so the commands should be simplistic innature.
Step by Step Solution
3.39 Rating (152 Votes )
There are 3 Steps involved in it
binbash echo Command line arguments are for i do echo i ... View full answer
Get step-by-step solutions from verified subject matter experts
