>===== Original Message From John Dell <[EMAIL PROTECTED]> ===== >Anyone have a shell script that will make take members of some lists and use >them to make a consolidated list? >For example: >remove dupes(List A + List B + List C) = List D > >I'm sure it can be done with list_members, remove_members, and add_members, >but I'm not very handy with shell scripts. > John, this works for me.
#!/bin/sh #Synch two smaller lists with a larger list. #If more than two, adjust 'wk' numbers. /home/mailman/bin/list_members the-a-list > /tmp/abc.wk1 /home/mailman/bin/list_members the-b-list >> /tmp/abc.wk1 cat /tmp/abc.wk1 | tr '[A-Z]' '[a-z]' > /tmp/abc.wk2 uniq -u /tmp/abc.wk2 > /tmp/abc.wk3 uniq -d /tmp/abc.wk2 >> /tmp/abc.wk3 sort -d /tmp/abc.wk3 > /tmp/abc.wk4 /home/mailman/bin/sync_members -w=no -f /tmp/abc.wk4 the-big-list The '-w=no' means 'don't send the welcome message.' Cron the above at your desired frequency. ------------------------------------------------------ Mailman-Users mailing list [EMAIL PROTECTED] 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/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org