Posts Tagged ‘count’

Count domain in mail.log (Qmail)

# cat /usr/local/sbin/count_mail_per_domain.sh #!/bin/bash logfile=$2 domain=$3 case “$1″ in -t) cat $logfile |grep “to remote” | awk ‘{print $14}’ | awk -F@ ‘{ field = $2 }; {print “domain: ” field }’ | sort |uniq -c |sort -nr | awk -v totale=0 ‘{totale=totale+$1; print ;} END {print “Totale giorno domini: “totale;}’ ;; -su) cat $logfile [...]

FacebookTechnotiziePlaxo PulseLinkedInTwitterWordPressGoogle BookmarksGoogle ReaderStumbleUponTechnorati FavoritesShare
Read the rest of this entry »
 
WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera