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

Author: bpeh

Bernard Peh is a great passioner of web technologies and one of the co-founder of Website Design and Reviews. He works with experienced web designers and developers everyday, developing and designing commercial websites. He specialises mainly in SEO and PHP programming.