Created
July 28, 2013 19:16
-
-
Save paulmars/6099747 to your computer and use it in GitHub Desktop.
How to delete a large directory in Unix (i need this every 6-12 months). Replace 'mydir' with location.
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 mydir -type f | while read -r; do rm -v "$REPLY"; sleep 0.2; done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment