sed < /var/log/httpd/webtop.access_log -e 's/ .*$//' | sort | uniq -c
August 29, 2009
Count unique IP address in Apache’s access log
November 16, 2008
November 11, 2008
Bash script to retry failed command
This was originally developed to retry an rsync command if a network error happened. It’s a mishmash of code found from around the net, and could probably be tidier but it gets the job done.