Question: on linux 01. (25 points) Write a bash script file called calc.sh that performs addition, subtraction, or multiplication. When executing the script, the user has
01. (25 points) Write a bash script file called calc.sh that performs addition, subtraction, or multiplication. When executing the script, the user has to provide a single parameter. The permitted values for this parameter are: +, -,and m. The behavior of the script in each case is as following: . . Addition: (/calc.sh +) The script will read 2 input integers from the user then echo their sum. Subtraction: (/calc.sh) The script will read 2 input integers from the user then echo the result of subtracting the second number from the first. Multiplication: (/calcsh m) The script will read 2 input integers from the user then echo their multiplication
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
