Last active
August 29, 2015 14:16
-
-
Save retrography/d6a41a291a84b1e00f35 to your computer and use it in GitHub Desktop.
brm: Brutally deletes everything under the current directory, even if the directory contains way too many files and folders with strange names containing special characters, etc...
This file contains 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/bash | |
find . -maxdepth 1 ! -path . -exec rm -rf {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment