[Koha] How many posts in Koha discussion forums?

Indranil Das Gupta indradg at gmail.com
Sun Aug 17 05:03:21 NZST 2014


Vimal,

On Sat, Aug 16, 2014 at 4:02 AM, Vimal Kumar V. <vimal0212 at gmail.com> wrote:
> May I know number of postings (month wise) in Koha discussion forum,
> http://lists.katipo.co.nz/pipermail/koha/
<snipped>

An ugly bit of bash script that will do the job for you, provided you
have 'curl' installed on the system.

clear; echo -n "Enter the Year and press [ENTER]: "; read YEAR; echo
-n "Enter the Month and press [ENTER]: "; read MONTH; mailcount=`curl
-s "http://lists.katipo.co.nz/pipermail/koha/${YEAR}-${MONTH}/thread.html"
| grep -m 2 "<p>" | tail -n 1 | cut -d " " -f 11 | cut -f 1 -d "<"`;
echo " "; echo "The mail count for $MONTH of $YEAR was $mailcount";

cheers,
-indra

-- 
Indranil Das Gupta

Phone : +91-98300-20971
Blog    : http://indradg.randomink.org/blog
IRC      : indradg on irc://irc.freenode.net
Twitter : indradg

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-
Please exchange editable Office documents only in ODF Format. No other
format is acceptable. Support Open Standards.

For a free editor supporting ODF, please visit LibreOffice -
http://www.documentfoundation.org


More information about the Koha mailing list