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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started