The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-17-2009
naminator naminator is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 4
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