Parsing Options in Shell, Perl and C

Posted by jayrfink on Apr 15, 2007 9:47 PM EDT
systhread.net; By Jason Fink
Mail this story
Print this story

I was originally going to call it parse this but thought better of it. Deciding upon and implementing command line options, arguments and flags can be a real bear. There exist a lot of tools to help out programmers, although some of them may be a bit heavy handed; solution - roll your own when possible. In this text a look at short and long opt parsing options with limited examples. I would have gone more in depth, however, the possibilities are so endless (especially in shellcode and Perl) that I chose some small examples.

I was originally going to call it parse this but thought better of it. Deciding upon and implementing command line options, arguments and flags can be a real bear. There exist a lot of tools to help out programmers, although some of them may be a bit heavy handed; solution - roll your own when possible. In this text a look at short and long opt parsing options with limited examples. I would have gone more in depth, however, the possibilities are so endless (especially in shellcode and Perl) that I chose some small examples.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Debian, Eclipse

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.