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
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