Tips repository!
Wednesday, 19 January 2011
Other nice and simple one-liner!
If you want to delete n days old files, you can use a one-liner like this:
find /directory -type f -mtime +n -exec rm -f {} \;
Or -type d for deleting directories, etc.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment