Skip to content

Instantly share code, notes, and snippets.

@bassaer
Created September 8, 2018 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bassaer/29c1e3a8b0957763d632f1f81a7eb74d to your computer and use it in GitHub Desktop.
Save bassaer/29c1e3a8b0957763d632f1f81a7eb74d to your computer and use it in GitHub Desktop.
ifconfigからIPアドレスを抽出するメモ ref: https://qiita.com/bassaer/items/888ae3715ede42e67c86
❯ 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