Question: . 5. Write a bash script that will create a starter script file, Le one that has #!/bin/bash on the first line and is also

 . 5. Write a bash script that will create a "starter"

. 5. Write a bash script that will create a "starter" script file, Le one that has #!/bin/bash on the first line and is also executable. The name of the starter script will be entered by the user once the script has begun executing. Use an appropriate prompt to ask the user for the script name Write #!/bin/bash to the first line of the file Set the file's privileges to 744, but only if the file was created successfully If the user takes longer than 10 seconds to enter a name, write an error message and exit with a code of 1

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!