find all hidden files in a directory and delete

This turns out to be much slightly tricky. I came up with this solution

find . -type f |  grep '\/\.[^.]*' | xargs rm -rf
Like it.? Share it:
Tags:

Comments are closed.