Line 102:
Line 102:
cat /var/log/qpsmtpd/* | \
cat /var/log/qpsmtpd/* | \
# Read all of the countries and count them.
# Read all of the countries and count them.
−
grep 'GeoIP Country:' |
+
grep 'GeoIP Country:' | \
sed -e 's/^.*\(..\)$/\1/' |
sed -e 's/^.*\(..\)$/\1/' |
sort | uniq -c | sort -n
sort | uniq -c | sort -n