find . -printf "%CY-%Cm-%Cd %CH:%CM:%CS\t%p\n" | sort -nr | head -n 1
May 27, 2010
Recursively find the latest modified file
August 29, 2009
Count unique IP address in Apache’s access log
sed < /var/log/httpd/access_log -e 's/ .*$//' | sort | uniq -c
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.