Executing File Options
Posted on 2006-11-08
I would like to create an executable file with options, if I create a file named “dosomething” I would like to be able to pass in a parameter that would allow me to execute different things. So… if I execute “./dosomething 1” I would be able to do different things.
… do some stuff for parameter of value 1
… do some stuff for parameter of value 2
How would I format the contents of the file? Is there an if statement or something of that kind?