ホストごとの集計2

sedのおまけつき。シングルクオート内なら()と|をエスケープしなくてもいいと思ってたんだけどエスケープ必要っぽい。
http://merry.whitesnow.jp/SEMICMD/SECTION6/section6_1.html

$ sudo cat /var/log/apache2/access.log | grep  -v 127.0.0.1 | grep -v 192.168. | cut -d" " -f1 | sort  | xargs -n 1 host | grep -v alias | uniq -c | sed -e 's/\(domain\ name\ pointer\)\|\(not\ found:\)/->/g' | sort