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" 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
Get step-by-step solutions from verified subject matter experts
