Shell script argument parsing

Posted by Peter Coulton on Stack Overflow See other posts from Stack Overflow or by Peter Coulton
Published on 2010-04-15T04:22:17Z Indexed on 2010/04/15 4:23 UTC
Read the original article Hit count: 349

Filed under:
|
|
|

There are a number of questions about this sort of thing but lets imagine we are targeting a generic Linux system with both getopt and getopts installed (not that we'll use either, but they seem popular)

How do I parse both long (--example | --example simple-option) and short argruments (-e | -esimple-example | -e simple-example)

© Stack Overflow or respective owner

Related posts about linux

Related posts about shell