Skip to content

Instantly share code, notes, and snippets.

@ryanoboril
Created September 25, 2015 03:03
Show Gist options
  • Save ryanoboril/43708f5fc42a1f538960 to your computer and use it in GitHub Desktop.
Save ryanoboril/43708f5fc42a1f538960 to your computer and use it in GitHub Desktop.
retrieve 192 ip address via bash script
echo `ifconfig | grep '192.168' | awk '{ print $2 }' | sed 's/addr://g'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment