Skip to content

Instantly share code, notes, and snippets.

@dillonhafer
Created April 16, 2015 12:03
Show Gist options
  • Save dillonhafer/88fad924f49fd9d1b12c to your computer and use it in GitHub Desktop.
Save dillonhafer/88fad924f49fd9d1b12c to your computer and use it in GitHub Desktop.
How to log ping with a timestamp
ping 8.8.8.8 | while read pong; do echo "$(date): $pong"; done | tee > ~/Desktop/ping.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment