//View Tip #307
Similar Tips
» Directories and its size
» Add a line to files using find and echo
» Moved Trac and Subversion repositories to another machine/direct
» Rename many files using find and perl
» Remove every file but one

 

Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
Use find by time to delete files more than x days old. For example the command below will delete files more than one day old:

find . -mtime +1 -exec rm {} \;


View Comments »




Comments 

Add your comment

Comments are currently disabled
No Comments

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit