On Tuesday 28 May 2002 10:00 am, Felix Geerinckx wrote:
> on Tue, 28 May 2002 08:42:03 GMT, [EMAIL PROTECTED] (Gary
>
> Stainburn) wrote:
> > Hi all,
> >
> > Can anyone give me the one-liner to replace
> >
> >
> > find . -type f -exec rm {} \;
> >
> > with
> >
> > find . -type f |perl -?????????
> >
> > to improve the speed when deleting a large squid cache
>
>       perldoc find2perl

Hi Felix,

thanks for this, but this only really improves the 'find' part and not the 
'rm'.  This is because the perl generated uses the 'system' command to fork 
the rm on each file, so I am back in the same boat as before.

What I want is to use the find statement to pass filenames on STDIN to the 
perl script which then unlinks them all in the same process.

Gary
-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to