Created
November 13, 2018 14:12
-
-
Save javierfernandes/14faddff7d3fb958c6deda67277e995a to your computer and use it in GitHub Desktop.
Delete old files from server
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
| export lastDate="Nov 8" | |
| ls -lArthF | grep -v "/$" | grep -v "$lastDate" | awk '{ print $9 }' | xargs rm -rf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment