![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reg: delete older files from ftp | sam99 | UNIX for Dummies Questions & Answers | 3 | 01-09-2008 10:56 AM |
| Remove the older files | Prasandha | UNIX for Dummies Questions & Answers | 1 | 10-17-2006 04:03 AM |
| files older than 15 minutes | sveera | Shell Programming and Scripting | 0 | 08-05-2005 03:05 PM |
| tar files older than 30 days | wfch | UNIX for Dummies Questions & Answers | 6 | 04-19-2004 05:40 AM |
| Finding files older than 2 hours | ianf | Shell Programming and Scripting | 1 | 05-27-2002 11:51 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
To delete the files older than
find /path/to/dir -type f -mtime +3 -exec rm \{\} \ To locate files that have been modified since some arbitrary date use this little trick: touch -d "13 may 2001 17:54:19" date_marker find . -newer date_marker To find files created before that date, use the cnewer and negation conditions: find . \! -cnewer date_marker To find a file which was modified yesterday, but less than 24 hours ago: find . -daystart -atime 1 -maxdepth The -daystart argument means the day starts at the actual beginning of the day, not 24 hours ago. Narsing |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|