Skip to content

Instantly share code, notes, and snippets.

@paulmars
Created July 28, 2013 19:16
Show Gist options
  • Select an option

  • Save paulmars/6099747 to your computer and use it in GitHub Desktop.

Select an option

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.
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