Permalink
Browse files

Add a script to get my local ip address

  • Loading branch information...
1 parent b9fe71a commit 2e0e79e21f10b5d5123eb88e752a07249aa94a61 @naoty committed Aug 8, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 localip
View
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ifconfig en0 inet | sed -e '1d' -e 's/^.*inet //' -e 's/ netmask.*$//'

0 comments on commit 2e0e79e

Please sign in to comment.