Question: Problem 2: Write a bash script that checks if options f, d, z where invoked by the user when your script was called In your

 Problem 2: Write a bash script that checks if options f,

Problem 2: Write a bash script that checks if options f, d, z where invoked by the user when your script was called In your script (i) option z expects their own argument (i) display to the screen (terminal) information which, if any, option was triggered (ii) generate (handle) error messages if, for example, the user tried to invoke invalid (unexpected) option or an error message if the right option was used by the user did not specify an argument that it expects (iv) have a function that prints to a screen/terminal Information how to use your script and invoke this function whenever the user does something wrong (e.g., in case of (ii) above)

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!