Question: Please type your answer, thank you! :) The subject is UNIX Create a new script with the name ifnumberic.sh that accomplishes the following tasks; Prompt

Please type your answer, thank you! :)

The subject is UNIX

Create a new script with the name ifnumberic.sh that accomplishes the following tasks;

  1. Prompt the user to enter a number between 0 and 9
  2. check that the provided input is a number between 0 and 9
    1. If the number is greater than 9, print "invalid entry"
  3. IF the users number is greater than 5; print; Your number is greater than 5
  4. IF the users number is less than 5, print; Your number is less than 5
  5. IF the users number is exactly 5, print; Your number is 5

Example

cjingers@general:~$ ./ifnumbers.sh Please enter a number between 0-9: 8 Your number is greater than 5

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!