list all files with resource forks on Mac OS X

This is mostly just a note to myself. If you ever have the need to find all files that contain HFS resource forks on Mac OS X, just use this bit of find magic:

find . -type f -exec test -s {}/..namedfork/rsrc \; -print

Leave a Reply

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