Created
April 24, 2020 05:02
-
-
Save hjhjw1991/aad9b0e8fe45a95b38f0f2cd87ba3eee to your computer and use it in GitHub Desktop.
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
#!/bin/zsh | |
ifconfig | sed -n -e '/127.0.0.1/d' -e '/inet /p' | awk '{print $2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment