Skip to content

Instantly share code, notes, and snippets.

@cbadke
Created June 3, 2020 14:03
Show Gist options
  • Save cbadke/04fe18d94c0a043b723fb2bb3bd1ee08 to your computer and use it in GitHub Desktop.
Save cbadke/04fe18d94c0a043b723fb2bb3bd1ee08 to your computer and use it in GitHub Desktop.
#!/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