####[ GNU/Linux One Stanza Tip (LOST) ]#######################
Sub : Removing old files [#2] LOST #646
Removing old files based on criterion of not being MODIFIED
within a stipulated time:
$ find <directory> -type f [-mtime +nnn] -exec rm -i {} \;
e.g. Deletes files in /var/adm directory and subdirectories
not accessed in the last 60 days:
# find /var/adm -type f -mtime +60 -exec rm -i {} \;
####[ ajitabhpandey (at) users.sourceforge.net ]##############
Tags: linux, lost, tips, tricks