![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Copy code from shell | yohoshua | UNIX for Dummies Questions & Answers | 1 | 10-11-2006 11:20 PM |
| how to convert from korn shell to normal shell with this code? | forevercalz | Shell Programming and Scripting | 21 | 11-22-2005 10:18 PM |
| very simple shell thing.. | sskb | UNIX for Dummies Questions & Answers | 2 | 06-26-2003 03:18 PM |
| simple shell - how to get a parameter typed in a shell script | cmitulescu | Shell Programming and Scripting | 3 | 12-05-2001 11:04 AM |
| A simple shell question | a_new_admin | Shell Programming and Scripting | 2 | 11-01-2001 09:28 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Please verify the simple Shell code
Hi,
i am trying to write script which will delete files(more than 90 days older) from different directories. Please check its ok if i implement it in SUN solaris10; One important thing i used here "exec" flag. I heard from someone- as i have lots of files "exec" flag may give error like too long argument. So, what should i do to remove huge files. #!/usr/bin/sh find /var/opt/backup/cam* -mtime +90 -exec rm {} \; find /var/opt/backup/tmp/zam* -mtime +90 -exec rm {} \; find /var/opt/otherbackup/cat* -mtime +90 -exec rm {} \; find /var/opt/otherbackup/cat* -mtime +5 -exec rm {} \; |
| Forum Sponsor | ||
|
|
|
||||
|
Isn't this a duplicate thread ??? ...
Find files including subdirectory and Delete |
||||
| Google The UNIX and Linux Forums |