Created
August 24, 2017 04:17
-
-
Save snappytux/9364fa0c8301a4a5a0dd716eac8af99d to your computer and use it in GitHub Desktop.
Remove file older 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
#!/bin/sh | |
find /root/* -mtime +7 -exec rm {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/root/*
You can change your path