Example 2 with argument:

Linux Shell Scripting Get script options with getopts 3

Look at the above snapshot, argument is required with option b.

Linux Shell Scripting Get script options with getopts 4

Look at the above snapshot, this is the sample output of above script.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *