Find and remove files with pattern in bash

Useful command to remove files that start with “._” (no quotes), for some reason tar command in OS X creates those files and I found an app having problems with them, here is how to get rid of those unnecessary hidden files:

find . -name *._* -exec rm -f {} \;

Leave a Reply