Question: Write this in #!/bin/bash (Linux) 6. Write a script that does the following: (a) reads in two natural numbers from the keyboard; (b) checks that

 Write this in #!/bin/bash (Linux) 6. Write a script that does

Write this in #!/bin/bash (Linux)

6. Write a script that does the following: (a) reads in two natural numbers from the keyboard; (b) checks that the second number is different from zero (see the flags in man test): if that's the case, it prints the ratio of the first number over the second to terminal; otherwise, it prints "Cannot divide by zero (see let)

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!