Question: Write a function called do_square in Bourne shell that uses the first argument/parameter to calculate the square of the integer the user enters when running
Write a function called do_square in Bourne shell that uses the first argument/parameter to calculate the square of the integer the user enters when running the script. If the script is called swuare.sh, then the user will run it as follows from the prompt:
$ square.sh 5
% 25 //the result.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
