Question: The language is Linux/Unix gedit Functions 1. Write a script named add that takes two command line arguments and displays as output their sum. The
The language is Linux/Unix gedit
Functions
1. Write a script named add that takes two command line arguments and displays as output their sum. The script is required to contain a function named add that takes these two arguments and returns their sum. Your script should also verify that the user entered two and only two arguments at the command line. If the user does not execute the program correctly, an error should be display describing the correct usage.
Example run:
add 5 8
The sum is 13
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
