mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-20 04:35:32 +00:00
# Conflicts: # java/com.sap.sse/src/com/sap/sse/pairinglist/impl/PairingListTemplateImpl.java
11 lines
468 B
Bash
11 lines
468 B
Bash
#!/bin/sh
|
|
year=$1
|
|
read -s -p "Password for user awstats on awstats.sapsailing.com: " passwd
|
|
if [ "$year" = "" ]; then
|
|
year=`date +%Y`
|
|
fi
|
|
for i in Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec; do
|
|
echo -n "$i: "
|
|
wget -O - "http://awstats:$passwd@awstats.sapsailing.com/unique-visitors/unique-ips-days-useragents-per-event-$i-$year" 2>/dev/null | awk '{ sum=sum+$2; } END { print sum; }'
|
|
done | awk '{ print $0; total=total+$2; } END { print "Total: " total; }'
|