Created
April 2, 2013 09:45
-
-
Save widyakumara/5291108 to your computer and use it in GitHub Desktop.
delete files recursively.
eg. del .DS_Store index.html .htaccess
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
del_recursive() { | |
for var in "$@" | |
do | |
find . -name "$var" -type f -delete | |
done | |
} | |
alias del=del_recursive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment