Created
April 6, 2011 00:39
-
-
Save colinsullivan/904902 to your computer and use it in GitHub Desktop.
A script to delete any item inside a particular folder if it is older than 7 days.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find /path/to/folder -not \( -path "/path/to/folder" \) -Btime +7d -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment