Skip to content

Instantly share code, notes, and snippets.

@widyakumara
Created April 2, 2013 09:45
Show Gist options
  • Save widyakumara/5291108 to your computer and use it in GitHub Desktop.
Save widyakumara/5291108 to your computer and use it in GitHub Desktop.
delete files recursively. eg. del .DS_Store index.html .htaccess
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