[Mailman-Users] problem about a statistic script

Oleg D. perl at ipchains.ru
Fri Aug 25 17:32:50 CEST 2006


liste yoneticisi wrote:
> Its OK.
>
> I want to share the script:
> -----------------
> #!/bin/bash
>
> MONTH=`date +'%b'`
> echo $MONTH
> MAILMANDIR=/cwis/htdocs/mailman
> POSTLOG=$MAILMANDIR/logs/post
> LISTLISTS=$MAILMANDIR/bin/list_lists
> LISTMEMBERS=$MAILMANDIR/bin/list_members
> LISTOWNERS=$MAILMANDIR/bin/list_owners
> echo "Listname  Posts   Members"
> echo "========================="
>
> echo $LISTOWNERS
>
> for list in `$LISTLISTS | grep -v "matching mailing lists found" | awk
> '{print $1}'`
> do
>     listlow=`echo $list | tr A-Z a-z`
>     listupp=`echo $list | tr a-z A-Z`
>     ownlist=`$LISTOWNERS $listlow | head`
>     postnum=`grep "^$MONTH" $POSTLOG | grep -i "post to $list" | wc -l`
>     membernum=`$LISTMEMBERS $list | wc -l`
>    echo $list " | " $ownlist " | " $postnum " | " $membernum
> done
> -----------
>
> Of course some estetic corrections are needed.
>
> But this isn't completed. I also want to add list creation date.
> We used to work on Listproc and we had a statistic script including the
> columns about list description and list creation date.
>
> description can be added but how can i add creation date?
>
> ----------------
> Liste Yoneticisi
> http://e-list.cc.metu.edu.tr
> http://e-liste.bidb.odtu.edu.tr
>
> On Fri, 25 Aug 2006, liste yoneticisi wrote:
>
> I am trying to write the script on bash
>
> How can i use transrom to lower/upper commands?
>
> the manuals on the web didn't work.
> ----------------
> Liste Yoneticisi
> http://e-list.cc.metu.edu.tr
> http://e-liste.bidb.odtu.edu.tr
>   

Sorry didn't see the bottom of your message.

You can try tolower(3), ex awk{'print tolower("FOO")}'



More information about the Mailman-Users mailing list