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 eg NUMBER and NUMBER
After getting the user input, check the following:
NUMBER is greater than NUMBER: subtract NUMBER from NUMBER
NUMBER is greater than NUMBER: subtract NUMBER from NUMBER
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.
Extra Credit
Check if the user input for both numbers are integers. Output an error message and end the program if they are not.
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
