[Mailman-Users] User Commands
Karl O. Pinc
kop at meme.com
Tue Feb 10 21:07:23 CET 2009
On 02/10/2009 10:20:51 AM, Brian Canty wrote:
> I was wondering if anyone knows of any command you can use to find out
> who is subscribed to all mailman lists.
list_lists | tail -n +2 | awk '{print $1;}' | xargs -n 1 list_members |
sort -u
Gets you all the members of all the lists.
list_lists \
| tail -n +2 \
| awk '{print $1;}' \
| xargs -n 1 bash -c 'list_members $0 | xargs -n 1 echo $0:' \
| grep foo at example.com \
| cut -d f 1
Gets you all the lists that foo at example.com is subscribed to.
Karl <kop at meme.com>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein
More information about the Mailman-Users
mailing list