Question: Write a BASH shell script named lab11_ex3 that displays the following menu and prompts for one-character (lowercase or upper case) input to invoke a menu

Write a BASH shell script named lab11_ex3 that displays the following menu and prompts for one-character (lowercase or upper case) input to invoke a menu option, as shown:

(A|a) List all files in a given directory. User should be prompt to enter absolute path of that directory.

(B|b) Display whether a file in present working directory is an ordinary file or a directory. If it is a file, it will create a backup copy of a file with extension .bk

(C|c) Test status of communication with a host provided by user using ping command

(Q|q) Exit

The program should allow the user to try any option any number of times and should quit only when the user gives menu option q or Q for Exit

I don't know why show those lost images, but are not neccesary.

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!