I was just faced with a problem. Over time, I had accumulated about 2000 directories called “.AppleDouble”, and wanted rid of them and all the items they contained. Thing is, they were scattered all over my hard disk and I couldn’t be bothered to navigate to each one and delete it.

Spent about 10 minutes reading the manpage for find(1), and eventually found that I could write this tiny line to do the entire job for me…

find /storage1 -type d -name .AppleDouble -exec rm -rfv {} \;

Wow. Just… wow.

2 thoughts on “find(1)

  1. well now i didn’t know you could do that!

    Thing is some of the .AppleDouble things are very useful as you need them for classic stuff.

Leave a Reply

Your email address will not be published. Required fields are marked *