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

Re: "resubmit" when crowded /deferred

On Tue, 2003-05-06 at 19:10, Matti Aarnio wrote:

>   Knowing that  a)  it isn't speed critical,  b) we want generic
>   portability:
>         resubmit)
>             (cd $POSTOFFICE/deferred &&  \
> 		find . -type f -exec mv '{}' ../router/ ';')
> 	    ;;

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.

With gnu mv the job can be done like this:

find . -type f -name '[0-9]*' | xargs mv --target-directory=../router

but with generic mv you must put destdir at the end.
Well, maybe in sake of simplicity your version will be fine.


To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi