GETOPT(1) GETOPT(1) getopt - () getopt _ getopt [] [--] _ getopt [] -o|--options _ [] [--] getopt () . GNU getopt(3) . getopt : getopt (options _ ) ( ). '--'. '-o' '--options' . GETOPT_COMPATIBLE ( '-' ) getopt getopt(1) . ( ). getopt(1) ( ) . ( eval). getopt ( ). getopt(1) (-T). -a --alternative '-'. -l --longoptions _- _ ( ) . ( ). _ . _ . -n --name _ getopt(3) . getopt(1) getopt. -o --options _- _ ( ) . getopt '-' ( ) . shortopts {colon} {colon}{colon} . shortopts '+' '-' ( ). -q --quiet getopt(3). -Q --quiet-output . getopt(3) -q. -s --shell . -s BASH. 'sh' 'bash' 'csh' 'tcsh'. -T --test getopt(1) . 4. getopt(1) GETOPT_COMPATIBLE '--' 0. -u --unquoted . ( ) ( getopt(1) ). -U --unknown getopt(3). . . -h --help . -V --version . getopt ( SYNOPSIS). (OUTPUT) . . getopt ( *). GNU *getopt(3). . . '-' ':' ';' '?' getopt(3). ( ). . '-' ( ) . '--' . '=' ( ). '=' ( '=' BUGS). . '-' . '--' . POSIXLY_CORRECT '+' . . . ( ) ( QUOTING). ( shift ). . stderr . '-' . . (). getopt(1) . '-' . '--' . '-' . . . '--' . '-' ( SYNOPSIS '-' '+' ). '' . . . . ( eval ) . GETOPT_COMPATIBLE SYNOPSIS '-u'. . '-s' . : 'sh' 'bash' 'csh' 'tcsh'. '' : sh csh. . '-' '+' . SYNOPSIS POSIXLY_CORRECT. '+' POSIXLY_CORRECT ( '-') . . '-' '--'. '--' . getopt(1) . . getopt '-' getopt . . ( ) POSIXLY_CORRECT getopt '+' . GETOPT_COMPATIBLE getopt . POSIXLY_CORRECT 100% ''. . '-' '+' . getopt 0 1 getopt(3) 2 3 4 -T. (ba)sh (t)csh getopt(1) /usr/share/doc/util-linux. POSIXLY_CORRECT getopt(3). . '-'. GETOPT_COMPATIBLE getopt . getopt(3) ( ). getopt(1) . ( ). Frodo Looijaard bash(1) tcsh(1) getopt(3) . getopt util-linux . util-linux 2.42.1 2026-05-18 GETOPT(1)