Created
August 30, 2020 07:57
-
-
Save adithya321/db2361b33cdb422dfab99354655ba429 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
ip route get 1 | sed -n 's/^.*src \([0-9.]*\) .*$/\1/p' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment