Yeah - I thought of that after the for loop had already been in the process
of starting for an hour.   I figured I wasn't going to worry about it, and
just head to bed at that point.  If I wasn't drunk at the time (I'll pretend
thats  my excuse) I might have done a strings .| xargs instead of the shell
script.

Oh well.  I can't really wo

> -----Original Message-----
> From: Wolfgang Zenker [mailto:[EMAIL PROTECTED] 
> Sent: January 20, 2005 2:04 PM
> To: Phillip Salzman
> Cc: 'Peter Jeremy'; [EMAIL PROTECTED]
> Subject: Re: Very large directory
> 
> 
> Hello Phillip,
> 
> > I've received a couple perl scripts from a few different people.  I 
> > can't use any of them until this evening due to the current load of 
> > the machines though.  Last night I ended up doing a strings on the 
> > directory, and taking its output into a for loop removing the files.
> 
> if you have a bit of time to spare, take a look at the 
> xargs(1) manpage. Using xargs instead of a for loop would 
> have saved you a lot of time and system load (and a little 
> bit of typing :-)
> 
> Wolfgang
> 

_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to