getopt (1) Linux Manual Page
getopt – parse command options (enhanced) Synopsisgetopt optstring parameters getopt [options] [—] optstring parameters getopt [options] -o|–options optstring [options] [—] parameters Descriptiongetopt is used to break up (parse) options in command lines for easy parsing by shell procedures, and to check for valid options. It uses the GNU getopt(3) routines to do this. The parameters…
