TWiki home TWiki > ECSEIT > MailingLists TWiki webs:
Main | TWiki | Know | Sandbox
ECSEIT . { Changes | Index | Search | Go }

-- DanGrimm - 20 Jun 2006

Merge and bulk delete of mailing list members

Found I needed to do some merge and bulk deletes. Simplest way is to ssh into ecselists and then run commands like the following:

First copy existing list (using example of smee alumni) to /tmp, and also create list of addresses to remove in /tmp. Then sort them, and then use comm

[dan@webcamserver /tmp]  cp ~majordomo/lists/smeealumni /tmp
[dan@webcamserver /tmp]  cd /tmp
[dan@webcamserver /tmp]  sort smeealumni > smeealumni.sort
[dan@webcamserver /tmp]  sort remove.sort > remove.sort2
[dan@webcamserver /tmp]  comm -2 -3 smeealumni.sort remove.sort2 > smeealumni.final
[dan@webcamserver /tmp]           cp smeealumni.final ~majordomo/lists/smeealumni                  Put it back!

Topic MailingLists . { Edit | Attach | Ref-By | Printable | Diffs | r1.1 | More }
Revision r1.1 - 20 Jun 2006 - 03:24 GMT - DanGrimm
Parents: WebHome
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.