Created
February 18, 2021 20:17
-
-
Save pstjean/1914cb730589ed591cb5ca6721ed0803 to your computer and use it in GitHub Desktop.
Print pings with times over a certain number of milliseconds
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/bash | |
# Usage: ./pingover.sh google.com 5 | |
# Based on default format of BSD ping shipped with macOS | |
ping $1 | awk -F '[= ]' "(\$10 >= $2)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment