Created
January 24, 2017 05:19
-
-
Save merttokgozoglu/fee5ccb0689d48411c75837d6ea6fcc4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/sbin/cli show interfaces media detail | grep 'Physical interface: ge-0\|Link partner Speed: ' | sed 's/^.*Link.*partner.*Speed/NEWLINE Link Speed/' | sed "s/ Enabled.*'[^']*'/ /" | sed 's/\, Enabled.*//' | sed 'N;s/\n\s*NEWLINE//;P;D' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment