ifconfig | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}' | grep -v -E "127.0.0.1" > iplist.txt deneme=`shuf -n 1 iplist.txt` echo $deneme