Skip to content

Instantly share code, notes, and snippets.

@mungi
Last active July 16, 2017 06:30
Show Gist options
  • Save mungi/739a59d7da053fb2f099cff0464fff61 to your computer and use it in GitHub Desktop.
Save mungi/739a59d7da053fb2f099cff0464fff61 to your computer and use it in GitHub Desktop.
ping with timestamp
#!/usr/bin/bash
ping $1 | while read data; do echo "$(date) | $data"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment