Skip to content

Instantly share code, notes, and snippets.

@IhsanMujdeci
Created September 25, 2022 23:43
Show Gist options
  • Save IhsanMujdeci/489b1ad85667f4b35031c0f1be5579db to your computer and use it in GitHub Desktop.
Save IhsanMujdeci/489b1ad85667f4b35031c0f1be5579db to your computer and use it in GitHub Desktop.
ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment