Created
September 8, 2018 15:29
-
-
Save bassaer/29c1e3a8b0957763d632f1f81a7eb74d to your computer and use it in GitHub Desktop.
ifconfigからIPアドレスを抽出するメモ ref: https://qiita.com/bassaer/items/888ae3715ede42e67c86
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
❯ ifconfig en0 | grep 'inet\s' | cut -d ' ' -f 2 | |
192.168.11.8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment