Question: on linux 0 1 . ( 2 5 points ) Write a bash script file called calc.sh that performs addition, subtraction, or multiplication. When executing
on linux 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: calcsh The script will read input integers from the user then echo their sum. Subtraction: calcsh The script will read input integers from the user then echo the result of subtracting the second number from the first. Multiplication: calcsh m The script will read 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
