new folder for scripts related to network usage. the get ip addresses script
authorChris Koeritz <fred@gruntose.com>
Tue, 17 Apr 2012 20:31:17 +0000 (16:31 -0400)
committerChris Koeritz <fred@gruntose.com>
Tue, 17 Apr 2012 20:31:17 +0000 (16:31 -0400)
does what one would expect; on linux it will print out all of the known IP addresses
that are in use.

scripts/networking/get_ip_addresses.sh [new file with mode: 0644]

diff --git a/scripts/networking/get_ip_addresses.sh b/scripts/networking/get_ip_addresses.sh
new file mode 100644 (file)
index 0000000..d605b2a
--- /dev/null
@@ -0,0 +1 @@
+ifconfig | grep "inet addr:" | sed -e "s/^.*addr:\([0-9.]*\) .*$/\1/"