Latest: buggy behaviour of parent:: in PHP 5.3.3

Content with Style

Web Technique

Remove .AppleDouble folders on *NIX boxes

by Pascal Opitz on January 22 2009, 22:54

Quick note to myself on how to get rid of those silly .AppleDouble folders

This fails, if there's funny characters in the filenames:

find . -name '.AppleDouble' | xargs rm -Rf
xargs: unmatched single quote

Hence we need to wrap the string into quotation marks:

find . -name '.AppleDouble' -printf '"%p"\n' | xargs rm -Rf


  • Of course that would work for .svn folders as well, but y'all knew that, didn't ya?

    by Pascal Opitz on January 23 2009, 09:20 - #

  • Isn't it more easy to do this: find . -name '.AppleDouble' -type d -exec rm -rf '{}' \; ???

    by Marius van Witzenburg on March 5 2010, 13:02 - #

Leave your comment

Comments are moderated.
Tags allowed: a, strong, em, code, ul, ol, li, q, blockquote, br, p