On January 19, 2006 05:24, Rene Borchers wrote:
> Hi,
>
> Yesterday I made some changes in my procmail filter, and forgot a closing
> }, with result mai-loop 12000+ mails :-(. Now i would like to move them out
> of the imap folder to a normal dir where i can sort them out. good email vs
> mail loop messages.
>
> I tried find -exec grep -q "MAILER-DAEMON" {} \; -print \ ; this gives
> me the filenames, but now I have to move them.
>
> Suggestions
You could redirect the list of file names to a temp file and then do
mv `cat <tempfile>` <destination>
Note that those are backquotes around the cat command. This will substitute
the file names into the command. If you get an error that the command line is
too long, you may have to split the temp file into several pieces, and do
each piece.
--
Ron
ronhd at users dot sourceforge dot net
Opinions expressed here are all mine.
____________________________________________________
Want to buy your Pack or Services from Mandriva?
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________