Question: Create a BASH script that gets the user's name and two numbers ( e . g . , NUMBER 1 and NUMBER 2 ) .

Create a BASH script that gets the user's name and two numbers (e.g., NUMBER1 and NUMBER2).
After getting the user input, check the following:
NUMBER1 is greater than NUMBER2: subtract NUMBER2 from NUMBER1
NUMBER2 is greater than NUMBER1: subtract NUMBER1 from NUMBER2
NUMBERs are equal: end the program and inform the user
Once correct input has been received, output the following:
Output the user name, the date, and a calendar with the appropriate context.
Output a repeating statement with the incrementing result from the calculation.
 Create a BASH script that gets the user's name and two

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!