Wednesday, April 16, 2008

Find files and delete

The first time I used "find" to delete all old and obsolete temporary files:

# find /xxx/tmp/ -ctime +14 -exec /bin/rm '{}' \;

$ find . -name '*.zip' -exec unzip {} \;

No comments: