Created
July 8, 2024 04:45
-
-
Save srathi-monarch/9706c24885ef16dd202550a6a5422888 to your computer and use it in GitHub Desktop.
IP from ip addr
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 addr show tun0 | grep -Po '(?<=inet )([0-9]{1,3}\.){3}[0-9]{1,3}(?=/[0-9]{1,3})' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment