Hi there,
I'd like to use the getopts built in in a bash script. I'd need help as I don't know how to parse options like "--myOption" and such .ie. options that are names and come after a --
Regards,
James.
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
getopts command
-
- Posts: 4
- Joined: 2006-04-18 16:52
- Location: N. Virginia
Bash isn't very reliable with getopts but you can give it a try.
http://www.tldp.org/LDP/abs/html/
Scroll down to section 11-20
http://www.tldp.org/LDP/abs/html/
Scroll down to section 11-20