(Solved) : Write Bash Script Checks Options B C Invoked User Script Called May Consider Using Getopts Q42681384 . . .

Write a bash script that checks if options a, b and c whereinvoked by the user when your script

was called. You may consider using GETOPTS and CASE statementscommand to handle options passed to your script.

In your script:

(i) only option a expects its own argument

(ii) display to the screen (terminal) information which, if any,option was triggered

(iii) generate (handle) error messages if, for example, the usertried to invoke invalid

(unexpected) option or an error message if the right option wasused by the user did not specify

an argument that it expects

(iv) have a function that prints to a screen/terminalInformation how to use your script and

invoke this function whenever the user does something wrong

Expert Answer


Answer to Write a bash script that checks if options a, b and c where invoked by the user when your script was called. You may con…

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?