Re: [netatalk-admins] purging .AppleDouble directories


Subject: Re: [netatalk-admins] purging .AppleDouble directories
From: Aaron M. Gowatch (aarong@wired.com)
Date: Thu Oct 09 1997 - 14:01:51 EDT


On Thu, 9 Oct 1997, John Barry -Technician wrote:

> %cd
> Hi,
> I've just cleaned out my .AppleDouble directories and it occured to me that
> others might like to do the same. So here's how I did it:
>
> %find . -name .AppleDouble -print >purge-list
> %purge_appledouble.pl purge-list
>
> The purge_appledouble.pl script looks like this:
>
> #!/apps/perl5/bin/perl
>
> open FILE, $ARGV[0];
> while ($line = <FILE>) {
> chomp $line;
> print "$line\n";
> system <<END;
> rm -rf $line
> END
> }

I wouldnt delete my .AppleDouble directories because our users like the
types and creators of the files they create preserved. :) But if you
really want to, theres an easier way:

% find . \( -type d -name .AppleDouble \) -print -exec rm -rf {} \;

Aa.



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:26:55 EST