Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(Linux) 1. Write shell scripts to solve the following problems: a. Write a shell

ID: 3704089 • Letter: #

Question

(Linux)

1. Write shell scripts to solve the following problems:

a. Write a shell script which will prompt the user to input two integers, read the input, compute, and
output their product.

b. Remove all zero-sized ordinary files from the directory passed as a command line argument. Use the
present working directory if no argument is specified. Be sure to verify a given argument is a directory
that exists before proceeding. Use of the find utility will not be an acceptable solution. Create a
directory and use the touch command to create zero-sized files for testing.

Explanation / Answer

a)

--------------------------------------------------------------------------------------------------------------------------------------------

b).