Posts Tagged ‘bash’

Howto purge config file of deleted packages in debian system

List packages that starts with rc server:~# dpkg -l |grep ^rc rc belocs-locales-bin 2.4-4 tools for compiling locale data files rc belocs-locales-data 2.4-6 base files for localization rc libclamav5 0.94.dfsg.2-1lenny2 anti-virus utility for Unix – library rc libdns43 1:9.5.0.dfsg.P2-5.1 DNS Shared Library used by BIND rc libisc44 1:9.5.0.dfsg.P2-5.1 ISC Shared Library used by BIND rc [...]

FacebookTechnotiziePlaxo PulseLinkedInTwitterWordPressGoogle BookmarksGoogle ReaderStumbleUponTechnorati FavoritesShare
Read the rest of this entry »

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