Apr 1, 2009

bash script: how to handle command line arguments

There is one example shell script demonstrate how to use getopt (GNU version) to parse command line argument handling. getopt GNU version is able to parse both short and long options. The bash built-in getopts cannot process long option.

This post (in Chinese) is a very good reference for getopt

No comments:

About Me

My photo