From: Chris Koeritz Date: Tue, 17 Apr 2012 20:31:17 +0000 (-0400) Subject: new folder for scripts related to network usage. the get ip addresses script X-Git-Tag: 2.140.90~1407 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=bfcce55d22a3152f2d30d5e47c9e36fd1fe69281;p=feisty_meow.git 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. --- 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/"