Skip to content

Instantly share code, notes, and snippets.

@baseboxorg
Forked from NapoleonWils0n/ipaddress_lan.sh
Last active August 29, 2015 14:06
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 baseboxorg/7baa851c103ca9ce7197 to your computer and use it in GitHub Desktop.
Save baseboxorg/7baa851c103ca9ce7197 to your computer and use it in GitHub Desktop.
#!/bin/sh
#----------------------------------------------------------------------------------------#
# Get local ip address for wifi #
#----------------------------------------------------------------------------------------#
ifconfig en0 |grep -E 'inet.[0-9]' | grep -v '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