Skip to content

Instantly share code, notes, and snippets.

@boris
Created October 23, 2012 03:13
Show Gist options
  • Save boris/3936438 to your computer and use it in GitHub Desktop.
Save boris/3936438 to your computer and use it in GitHub Desktop.
read log every once in a while...
#/bin/bash
echo "time (sec): "
read time
echo " kill with ctrl+D"
echo " "
while [[ 1=1 ]]; do
sudo tail -f /var/log/squid3/access.log | perl -pe 's/\d+/localtime($&)/e'
sleep $time
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment