Name the script args.sh. The script will take any number of command line arguments. The script will
Fantastic news! We've Found the answer you've been seeking!
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 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.
Related Book For
Posted Date: