Last Updated: February 25, 2016
·
717
· design48

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.