Question: To complete the overall task, perform the steps listed below. After cach step is complete and tested, create a comilt with your changes. push cominit

To complete the overall task, perform the steps listed below. After cach step is complete and tested, create a comilt with your changes. push cominit s as you wish, just remember the push saves all the comnlt s to the mighty Github cloud. Your comnits message must include which task you completed.
If you don't make it through all of a step or don't complete all 6 steps, leave heaw comments for partial credit considerations.
Create a bash seript named coll. Output a random number between 1 and 20.
Seript should run when ./roll OR bash roll is typed on command line. Think about permissions.
Output should say: You rolled a 0.0, where (:3) is the randomly generated number.
Change seript to prompt the user for a number. If the number is less than 1, output an error message. Output a random number between 1 and the user's number.
Change seript to take an argument from the command line instead of prompting the user. If no argument is passed, output an error message. Output a random number between 1 and the argument passed.
Script should run when.?? roll :B is typed on command line, where B is a number
Change seript to also check if the given argument is greater than 1. If no argument was given, prompt user for a number, and check that it was greater than 1. Output a random number between 1 and the number.
Change the script to prompt the user for a valid number if the argument was not provided or was not greater than 1. Prompting continues until a number greater than 1 is given. Output a random number between 1 and the valid number.
Change seript to take two arguments from the command line. The first argument will indicate number of dice to roll. The second will indicate how many sides of the dice. If there are less than or more than two arguments, or if the arguments are not greater than one, prompt the user for valid values for number of dice and number of side. Output a random number between 1 and the number of sides for each die.
Script should run when ./roll :0:3 is typed on command line.
Output should say: Die 1 rolled a: Die 2 rolled a A, where B are two randomly generated numbers, one for each die.
 To complete the overall task, perform the steps listed below. After

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!