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

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
james

getopts command

#1 Post by james »

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.

wmorgan1973
Posts: 4
Joined: 2006-04-18 16:52
Location: N. Virginia

#2 Post by wmorgan1973 »

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

Post Reply