Write a bash perl script to help users calculate


Problem

Linux: Have to complete using BASH and PERL scripts for both questions.

Write a BASH & PERL script to help users calculate compressed file size. Prompt the user to enter the original size of a file (in bytes) from the keyboard. Then use the following rules for calculating the compressed file size. Display the result on the screen.

If the size is less than 5000 bytes, the compression ratio is 90%.

If the size is between 5000 and 50000 bytes, the compression ratio is 70%

If the size is more than 50000 bytes, the compression ratio is 40%.

2. Develop a small console program driven by a text menu (see the sample screenshot below):

It displays a simple menu with 4 items indicated by number 1-4.

Users will enter number 1 to 4 to run some commands.

Item #1 to #3 will run some shell commands (it's your choice what to run, but do not use the same commands as in the example). When the command is finished, display the menu again.

If 4 is entered, then quit the program.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a bash perl script to help users calculate
Reference No:- TGS02779505

Expected delivery within 24 Hours