Skip to content

Instantly share code, notes, and snippets.

@simbafs
Created May 3, 2020 01:00
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 simbafs/f183cb59f1c313e4f6d2c96b3fe5216d to your computer and use it in GitHub Desktop.
Save simbafs/f183cb59f1c313e4f6d2c96b3fe5216d to your computer and use it in GitHub Desktop.
ifconfig | egrep 'inet ' | sed 's/ inet //' | sed 's/ netmask .*//'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment