Created
January 29, 2015 10:11
-
-
Save nl5887/5d213592d7cdbe947fc2 to your computer and use it in GitHub Desktop.
Remove all bak files 7 days or older.
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
| #!/bin/sh | |
| find /mnt/ -name '*.bak' -mtime +7 | xargs rm -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment