Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

UNIX Assignment I Write a bash script ( without using loop ) that meets the following requirements: Do not use echo also Name : The

UNIX Assignment I

Write a bash script (without using loop) that meets the following requirements:

Do not use echo also

Name: The name of the script MUST be myls.sh

Location: The location of the script MUST be ~/bin/myls.sh

FUNCTIONALITY:

The script MUST be menu driven

The script MUST present five (5) options of the ls command

The script MUST prompt the user for input to select an option

The script MUST then process the option by executing the ls command with the option

The output of the executed command should display to std out

The script MUST be documented with comment statements

The script MUST use the decision or selection structure to interpret the user selection and gracefully handle an invalid selection.

The script must be tested for all valid and some invalid input

$myls.sh

1)R recursive listing

2)Option

3)Option

4)Option

5)Option

Enter selection>R

vinotes

Scripts: myscript.sh

.

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

More Books

Students also viewed these Databases questions

Question

How do gross profits, operating profits, and net income differ?

Answered: 1 week ago

Question

What are Measures in OLAP Cubes?

Answered: 1 week ago

Question

How do OLAP Databases provide for Drilling Down into data?

Answered: 1 week ago

Question

How are OLAP Cubes different from Production Relational Databases?

Answered: 1 week ago