« mobile brain | Main | Tamagotchi talking »

finding

The UNIX Forums - Searching for files over 30 days old in current directory

find . \( ! -name . -prune \) -mtime 30

or this one

cd /path/directory
find . -mtime +29 -print | xargs ls -d

this lists all files in a directory older than 29 days - so you know whether you want to delete or not!
from http://www.unix.com/showthread.php?s=&threadid=7388

maybe I need to not put these on the main webpage.... cause I know these types of links have got to be boring.

http://www.unix.com/showthread.php?t=13863 - helping with find
http://www.unix.com/showthread.php?t=16600 - a page of unix how-tos
http://www.unix.com/showthread.php?t=13774 - unix tutorials/programming tutorials etc.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)