Created
September 1, 2015 14:28
-
-
Save angelbladex/e99d8470e3fdb09a1abf to your computer and use it in GitHub Desktop.
Convert to human readable, unix timestamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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