Question: Shell script 1. Write a shell script that takes a list of integers as the command-line arguments and displays the list of their squares and

Shell script

1. Write a shell script that takes a list of integers as the command-line arguments

and displays the list of their squares and the sum of their squares. Copy and paste your code in your report.

2. Write a shell script that takes one directory as one required argument and displays the names of all zero length files in it, including the hidden files starting with ".". Do appropriate error checking on whether the number of the command arguments is correct and whether the argument of the command is a directory. Copy and paste your code in your report.

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!