bash alias to remove file name from working directory
Tired of .DS_Store files in your dev directory? Or just want an easy way to delete files of a specific name? Create an alias with this snippet:
find . -type f -name $1 -print0 | xargs -0 rm
This will recursively remove the specific file from the current directory and all directories below.
Written by Ryan Regalado
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Zsh
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#