Question: In Kali Linux - Write a script called argcnt.sh that tells how many arguments are supplied to the script. a. Modify your script to have

In Kali Linux - Write a script called argcnt.sh that tells how many arguments are supplied to the script.

a. Modify your script to have it also echo each argument, one per line.

b. Modify your script further to label each argument like this:

$ bash argcnt.sh this is a "real live" test

there are 5 arguments

arg1: this

arg2: is

arg3: a

arg4: real live

arg5: test $

5. Modify argcnt.sh so it lists only the even arguments.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!