getopt command examples
getopt – parse command options (enhanced)
Example scripts for (ba)sh and (t)csh are provided with the getopt(1) distribution, and are optionally installed in
/usr/share/getopt/ or /usr/share/docs/ in util-linux subdirectory.