>>>>> "Adam" == Adam Wells <[EMAIL PROTECTED]> writes:

Adam> At 7:44 -0400 7/12/02, Erik Price wrote:
>> BUT -- this is a little off topic, but could someone point me to a
>> resource describing which kinds of files need the special treatment?
>> I run OS X only but I have heard that there are still some apps that
>> use the dichotomous file structure.  This way I know what I -can't-
>> preserve with a little "gnutar -czf".

Adam> Here's a quick and dirty way to find all files with resource forks,
Adam> since gnutar doesn't know from resource forks:

Adam> find [targetdir] \( -type f -and -exec test -s
Adam> \{\}\/..namedfork\/rsrc \; \) -print

That's expensive.  How about (since this *is* the Perl on OSX list):

  find2perl /Dir -eval '-f and -s "$_/..namedfork/rsrc"' -print | perl

Much cleaner and faster.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to