The following pages link to link: http://rsalveti.wordpress.com/2007/04/03/bash-parsing-arguments-with-getopts/: