Created
June 3, 2020 14:03
-
-
Save cbadke/04fe18d94c0a043b723fb2bb3bd1ee08 to your computer and use it in GitHub Desktop.
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/sh | |
ping $1 | while read line; do | |
echo "$line" | |
if [[ $line == *"bytes from"* ]]; then | |
echo -ne '\007'; | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment