|
cleandisk and awk
Hi guys,
I have a script that i done but now i wanna do something like this .
The name of the script is cleandisk and it has some options.
cleandisk -I -a
cleandisk -I -v
When you type -I -a it should do something and its the same way to the other option, if you type only an argument like cleandisk -I , it should print a message , and when you type no argument it gives another message.
I tried with awk an if, but i think i´m not doing it right.
Thanks
|