Further Reading
- Small getopts Tutorial: http://web.archive.org/web/20190509023321/https://wiki.bash-hackers.org/howto/getopts_tutorial
- How can I handle command-line options and arguments in my script easily?: http://mywiki.wooledge.org/BashFAQ/035
- How to Use OPTARG in Bash: https://linuxsimply.com/bash-scripting-tutorial/functions/script-argument/bash-optarg/
- A Shell Script to Monitor Network, Disk Usage, Uptime, Load Average and RAM Usage in Linux: https://www.tecmint.com/linux-server-health-monitoring-script/
Note: The following links contain extra information about OPTIND
.
- How to Use getopts to Parse Linux Shellscript Otions: https://www.howtogeek.com/778410/how-to-use-getopts-to-parse-linux-shell-script-options/
- How does the OPTIND variable work in the shell builtin getopts: https://stackoverflow.com/questions/14249931/how-does-the-optind-variable-work-in-the-shell-builtin-getopts
- How to Use “getopts...