Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions