Pastebin


 * 1) !/bin/bash

IPS=$(ifconfig | awk '/inet/ { print $2 }' | awk -F ":" '{ print $2 }')

NUMIPS=$(echo $IPS | wc -w)

COUNT=1 for i in $IPS do export IP$COUNT=$i COUNT=`expr $COUNT + 1` done