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

 on linux 01. (25 points) Write a bash script file called
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 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

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!