To si přece můžeš najít ne?http://wiki.bash-hackers.org/howto/getopts_tutoria lJsou tam příklady použití.