On 4/6/06, Dragon <[EMAIL PROTECTED]> wrote:
> So if you decided 500 was a good number to index, for the first chunk
> you would do:
>
>          bin/arch --wipe --start=1 --end=500 listname
>
> For subsequent chunks you would do (adjusting the start and end
> indexes of course...):
>
>          bin/arch --start=501 --end=1000 listname
>

Bash can do this for you:

#!/bin/bash
bin/arch --wipe
for i in `seq 0 10`
do
    bin/arch --start=$(( 1+$i*500 )) --end=$(( 500+$i*500 )) listname
done

...Assuming that bin/arch --wipe alone does what I think it does.
Also, if you have more than 5500 messages in the mbox file, you'll
need to adjust the second argument in the 'seq' upwards. And, of
course, replace 'listname' with the list name.

--
- Patrick Bogen
------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to