tuxtweaks.com
Bash Getopts - Scripts with Command Line Options
This tutorial provides example code to process command line switches or options in bash scripts using getopts. bash getopts