Parse the options of your bash script like a pro

Posted by linuxaria on Sep 20, 2012 2:17 AM EDT
Linuxaria.com
Mail this story
Print this story

Today i was writing a bash script that should manage some input arguments, and so i studied getopt, this is a convenient and elegant way to manage input parameters in a bash script. With it you can define switch (present or not) or parameters with an option, thus making your simple bash script much more professional. Let’s see how to use this command and its options.

Full Story

  Nav
» Read more about: Story Type: Tutorial

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.