Getopt

GETOPT(1) - General Commands Manual

Sh, Getopt

GETOPT(1) - General Commands Manual # GETOPT(1) - General Commands Manual NAME # getopt - parse command options SYNOPSIS # getopt optstring $*‌ DESCRIPTION # The getopt utility cannot handle option arguments containing whitespace; consider using the standard getopts shell built-in instead. getopt is used to break up options in command lines for easy parsing by shell procedures, and to check for legal options. optstring is a string of recognized option letters (see getopt(3)); if a letter is followed by a colon, the option is expected to have an argument which may or may not be separated from it by whitespace. ...