Last active
July 16, 2017 06:30
-
-
Save mungi/739a59d7da053fb2f099cff0464fff61 to your computer and use it in GitHub Desktop.
ping with 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
#!/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