How to find files with resource forks

This shell commands finds all files with resource forks in the current directory:

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

This is useful e.g. if you want to back up your home directory to a drive that doesn't use an HFS file system, such as on a Linux machine.