Question: 1. Write a script between to display the files whose sizes are in a specific range. This script takes two arguments as the lower bound

1. Write a script between to display the files whose sizes are in a specific range. This script takes two arguments as the lower bound and upper bound of the file size, and prints out a list of filenames as well as their sizes. For example, for the following files

$ls -l --- 79 --- bb2 --- 96 --- birthday --- 198 --- bothfiles --- 152 --- bundle --- 115 --- dateset

If we execute ./between 80 120, the output should be birthday: 96 bytes

dateset: 115 bytes

(Script must be created utilizing awk)

2. Write a script menu_size which provides a menu interface with three options: 1. Set the upper bound 2. Set the lower bound 3. Search

4. Quit

When the user chooses 3, the script between in question 1 will be executed. The two arguments of between can be set with option 1 and 2. The script will go back to the menu selection after a search, and terminates only when the user selects option 4.

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!