![]() |
|
|
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. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Delete files older than 3 months.(read date from the name of the file) | bhagat.singh-j | Shell Programming and Scripting | 3 | 07-15-2008 04:14 AM |
| Find 3 months old log files and remove | cvdev | SUN Solaris | 13 | 05-22-2008 02:38 PM |
| Delete database table based on months using script. | Maverick79 | UNIX for Advanced & Expert Users | 0 | 08-30-2007 03:27 AM |
| deleting files with dates 3 months ago | godalle | UNIX for Dummies Questions & Answers | 3 | 11-08-2005 03:03 AM |
| Listing files older than 2 months | pbekal | Shell Programming and Scripting | 3 | 01-17-2002 02:12 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Code:
-ctime +190 -type f -exec echo rm {} \;
Code:
find /your/path/ -ctime +190 -type f -exec rm {} \;
Regards |
|
||||
|
You can run this command with cron job, a link to a useful thread of Perderabo:
cron and crontab Regards |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|