Skip to content

Instantly share code, notes, and snippets.

@LiberQuack
Created September 13, 2016 19:39
Show Gist options
  • Save LiberQuack/b160d679e36078ef2b6de59705e05fcd to your computer and use it in GitHub Desktop.
Save LiberQuack/b160d679e36078ef2b6de59705e05fcd to your computer and use it in GitHub Desktop.
mkdir ~/internet
while true; do
ping -w1 -W1 youtube.com |& while read pong; do
echo "$(date +%x.%X) >>> $pong" | grep -E "rtt|100%|unknown" >> ~/internet/$(date +%x).txt
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment