Skip to content

Instantly share code, notes, and snippets.

@vidarlee
Created May 22, 2017 08:09
Show Gist options
  • Save vidarlee/d07d1839a4e663b91e84a709611e1691 to your computer and use it in GitHub Desktop.
Save vidarlee/d07d1839a4e663b91e84a709611e1691 to your computer and use it in GitHub Desktop.
for fn in `grep ^server somefile | awk -F\' '{print $2}'`; do [ -z "`ping -c 1 $fn -W 2 | grep ttl=`" ] && echo $fn; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment