Question: - Write a bash script called menu that meets the following requirements. - In this project, it is your task to create a command line
Write a bash script called menu that meets the following requirements.
In this project, it is your task to create a command line interface that will continually prompt user to see if they would like to:
List files in the current directory.
Search and list all empty files and directories in the current directory.
Provide a directory name followed by a series of filenames to be moved into the specified directory. If the directory doesn't exist, create one.
Provide a name for a tar file, then an option compress or extract and if compress, a series of filenames to be combined into a tar file.
Exit program.
See figures for an example run.
kangh@delmar hw$ menu
List files in current directory.
List empty files and directories in current directory.
Move files to another directory.
Tar files.
Exit program.
What would you like to do
total
drwxrxrx kangh Jun :
drwxrxrx kangh Jun :
drwxrxrx kangh Jun : backup
drwxrxrx kangh Jun : dirempty
rwrr kangh Jun : emptytxt
rwrr kangh Jun : emptytxt
rwrr kangh Jun : emptytxt
rwx kangh Jun : menu
Figure : List files in current directory
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
