Script to merge mailinglist archives
mikko at whitecortex.net
Thu Jan 27 09:40:19 PST 2005
Thanks everyone for the answers, but none of you really understood what
I meant :)
So let me rephrase.
I have archived mailinglist mbox format files on my hd, downloaded from
Now as you can see, there are multiple mbox files per month.
I would like to make a one-liner/script which would merge all the mboxes
of every month to a single mbox representing that month.
For the above mentioned files:
#cat 200303* >> questions.0303
is how I do it manually, but doing this for each and every month for
every year is painful (at least for lazy people like myself)
So the question isn't about me, at this time, subscribed to mailinglist
and wanting to put those files somewhere, I am already doing that with
procmail, but I am not accepting mail from list always (actually quite
rarely), so I would like to use the archives from the freebsd site, and
after a while, just delete my own procmail created freebsd-questions
Also isn't about unzipping the archives.
Just to clarify.
I'm 100% sure some awk guru can tell me a oneliner in 2 seconds.
More information about the freebsd-questions