Skip to content

Instantly share code, notes, and snippets.

@jadams
Last active November 22, 2017 02:52
Show Gist options
  • Save jadams/bd150595b47dba8dbad887106a014f7d to your computer and use it in GitHub Desktop.
Save jadams/bd150595b47dba8dbad887106a014f7d to your computer and use it in GitHub Desktop.
for s in $(for i in us*; do ping -c 1 -W 1 $(awk '/remote / {print $2}' $i) | awk '/bytes from/'; done | sort -t= -nk4 | head -10 | awk '{print $4}' | sed 's/.$//'); do grep -l $s us*; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment