Skip to content

Instantly share code, notes, and snippets.

@angelbladex
Created September 1, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelbladex/e99d8470e3fdb09a1abf to your computer and use it in GitHub Desktop.
Save angelbladex/e99d8470e3fdb09a1abf to your computer and use it in GitHub Desktop.
Convert to human readable, unix timestamp
#!/bin/bash
perl -pe 's/(\d+)/localtime($1)/e'
#i added this script in /usr/local/bin/
#sample usage
#grep youtube /var/log/squid3/access.log | totime
#tail -f /var/log/squid3/access.log | grep "/403" | totime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment