Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What is economic profit, and how is it measured?

Answered: 1 week ago

Question

Determine miller indices of plane A Z a/2 X a/2 a/2 Y

Answered: 1 week ago

Question

Identify the types of informal reports.

Answered: 1 week ago

Question

Write messages that are used for the various stages of collection.

Answered: 1 week ago