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
Get step-by-step solutions from verified subject matter experts
