[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "resubmit" when crowded /deferred



On Tue, May 06, 2003 at 07:32:59PM +0400, Eugene Crosser wrote:
...
> Both this and xargs with '{}' do a fork/exec for every file; I tried to
> avoid that.  We are talking many thousands files, if they are not that
> many then the original shell expansion works too.

Well, as ZMailer sort of requires that your system has PERL (like
'newdbprocessor' et.al.), you could do:

  find . -type f -print | perl -ne 'chomp; rename($_,'\''../router/'\''.$_);'

The ultimate in lessening the number of syscalls... (shell and perl quotes.)
(Just composed it, didn't verify working ... but I code lots of perl ...)

> Eugene

-- 
/Matti Aarnio	<mea@nic.funet.fi>
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi