samedi 25 juillet 2015

bash script split if argument set

Here is some pseudo-code for what I'm trying to achieve with a bash program.

This program will be called with either:

filesplit -u OR filesplit --update

filesplit

 if -u (or --update) is set:

   echo "Update"

 else:

   echo "No Update

How can this split be achieved in a bash script?

Aucun commentaire:

Enregistrer un commentaire