![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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 |
|
||||
|
Thanks but
Thanks for the help but,
If you have to enter at least two arguments like cleandisk -I -V and if you type only one it gives some message. Another thing if i type the dir i want after the arguments like: cleandisk -I -V /home how can i save the "/home" to a variable ? Thanks, |
|
|||||
|
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|