Skip to content

Instantly share code, notes, and snippets.

@kevinquinnyo
Created December 15, 2015 23:44
Show Gist options
  • Save kevinquinnyo/6468a679631366fa3125 to your computer and use it in GitHub Desktop.
Save kevinquinnyo/6468a679631366fa3125 to your computer and use it in GitHub Desktop.
findNode ()
{
mtr -n --raw --report-cycles 1 "$1" | awk '$1~/^h/ {print $3}' | uniq | sed -e '$!{h;d;}' -e x
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment