LinuxSysAdmin

Things I don't want to look for twice..

Monthly Archives: January 2014

convert squid unix timestamp

I needed this because I needed to calculate requests per minute from a squid log file:

perl -p -e 's/^\d+\.\d+/localtime $&/e' < /path/to/squid.log