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:
1. List files in the current directory.
2. Search and list all empty files and directories in the current directory.
3. Provide a directory name followed by a series of filename(s) to be moved into the specified directory. If the directory doesn't exist, create one.
4. Provide a name for a tar file, then an option (compress or extract) and if compress, a series of filename(s) to be combined into a tar file.
5. Exit program.
- See figures for an example run.
[kangh@delmar hw2]\$ menu
(1) List files in current directory.
(2) List empty files and directories in current directory.
(3) Move files to another directory.
(4) Tar files.
(5) Exit program.
What would you like to do?
1
total 8
drwxr-xr-x 4 kangh 31844397 Jun 2017:35.
drwxr-xr-x 6 kangh 3184434096 Jun 1616:41..
drwxr-xr-x 2 kangh 31844389 Jun \(2017: 29\) backup
drwxr-xr-x 2 kangh 3184436 Jun 1822:21 dir_empty
-rw-r--r--1 kangh 3184430 Jun 1822:20 empty1.txt
-rw-r--r--1 kangh 3184430 Jun 2017:08 empty2.txt
-rw-r--r--1 kangh 3184430 Jun 1822:20 empty3.txt
-rwx------1 kangh 3184431061 Jun 2017:35 menu
Figure 1: List files in current directory
- Write a bash script called menu that meets the

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 Programming Questions!