From bfcce55d22a3152f2d30d5e47c9e36fd1fe69281 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 17 Apr 2012 16:31:17 -0400 Subject: [PATCH] new folder for scripts related to network usage. the get ip addresses script 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 | 1 + 1 file changed, 1 insertion(+) create mode 100644 scripts/networking/get_ip_addresses.sh diff --git a/scripts/networking/get_ip_addresses.sh b/scripts/networking/get_ip_addresses.sh new file mode 100644 index 00000000..d605b2ac --- /dev/null +++ b/scripts/networking/get_ip_addresses.sh @@ -0,0 +1 @@ +ifconfig | grep "inet addr:" | sed -e "s/^.*addr:\([0-9.]*\) .*$/\1/" -- 2.34.1