[WNDW] Stats
Marco Zennaro
mzennaro at ictp.it
Fri Jan 27 07:02:22 PST 2006
Hi All!
Carlo and myself, being a Friday afternoon, decided we needed to know
how many people were downloading the book. So here comes the stats page:
http://wndw.net/stats.html
Following is the script you can use to produce the statistics. You'll
have to hack it to fit with your log formats.
I don't really know if we should link this page. What do you think?
Ciao,
Marco
----------------------------------------------------------------------
#!/bin/bash
echo
echo "number of downloads (print version):"
cat /var/log/httpd/wndw_access_log | grep wndw-print.pdf | awk
'{print $1}' | sort| uniq|wc -l
echo
echo "number of downloads (screen version):"
cat /var/log/httpd/wndw_access_log | grep wndw-ebook.pdf | awk
'{print $1}' | sort| uniq|wc -l
echo
echo "by chapter:"
echo "cover :"; cat /var/log/httpd/wndw_access_log | grep cover.pdf |
awk '{print $1}' | sort| uniq|wc -l
echo "about :"; cat /var/log/httpd/wndw_access_log | grep about.pdf |
awk '{print $1}' | sort| uniq|wc -l
echo "chapter 1:"; cat /var/log/httpd/wndw_access_log | grep
chapter1.pdf | awk '{print $1}' | sort| uniq|wc -l
echo "chapter 2:"; cat /var/log/httpd/wndw_access_log | grep
chapter2.pdf | awk '{print $1}' | sort| uniq|wc -l
echo "chapter 3:"; cat /var/log/httpd/wndw_access_log | grep
chapter3.pdf | awk '{print $1}' | sort| uniq|wc -l
echo "chapter 4:"; cat /var/log/httpd/wndw_access_log | grep
chapter4.pdf | awk '{print $1}' | sort| uniq|wc -l
echo "chapter 5:"; cat /var/log/httpd/wndw_access_log | grep
chapter4.pdf | awk '{print $1}' | sort| uniq|wc -l
echo "chapter 6:"; cat /var/log/httpd/wndw_access_log | grep
chapter6.pdf | awk '{print $1}' | sort| uniq|wc -l
echo "chapter 7:"; cat /var/log/httpd/wndw_access_log | grep
chapter7.pdf | awk '{print $1}' | sort| uniq|wc -l
echo "chapter 8:"; cat /var/log/httpd/wndw_access_log | grep
chapter8.pdf | awk '{print $1}' | sort| uniq|wc -l
echo "chapter 9:"; cat /var/log/httpd/wndw_access_log | grep
chapter9.pdf | awk '{print $1}' | sort| uniq|wc -l
echo "appendix:"; cat /var/log/httpd/wndw_access_log | grep
appendix.pdf | awk '{print $1}' | sort| uniq|wc -l
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nocat.net/pipermail/wndw/attachments/20060127/6d687868/attachment.htm
More information about the WNDW
mailing list