Created
March 6, 2020 08:18
-
-
Save delacruz-dev/bd1c82aae1bca5c5e552771016319349 to your computer and use it in GitHub Desktop.
Alias for getting my IP on bash/zsh
This file contains hidden or 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
alias myip="ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment