Computing.Net > Forums > Unix > finding files N days or older

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

finding files N days or older

Reply to Message Icon

Name: ZK
Date: May 30, 2002 at 10:58:58 Pacific
Comment:

does anyone know how I could do this ? I need to search a directory structure and find any file that is older then say 30 days.



Sponsored Link
Ads by Google

Response Number 1
Name: LANkrypt0
Date: May 30, 2002 at 13:58:28 Pacific
Reply:

A file that itself is 30 days older? Or a file that hasnt been edited in 30 days?


0

Response Number 2
Name: Frank
Date: May 31, 2002 at 07:42:32 Pacific
Reply:

use the find commad:

find /dir -type f -mtime +30

the option -type f will show you only normal files.

the option -mtime +30 will show you files which was not in the last 30 day's
(Older than 30 day's)

Regards Frank


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: finding files N days or older

how to find files and move to direc www.computing.net/answers/unix/how-to-find-files-and-move-to-direc/4822.html

find files www.computing.net/answers/unix/find-files/3391.html

find files in specific date www.computing.net/answers/unix/find-files-in-specific-date/4708.html