TIP:
You can replace
withCode:cd /tmp wget http://www.watismijnip.be/ cd /tmp cat index.html | grep "Your IP address is" >> ip.txt cat ip.txt | cut -d\: -f2 >> ip2.txt cat ip2.txt | cut -d\Y -f1 >> ip3.txt sed -i "s/ *//g" ip3.txt cat ip3.txt | sed s/.$// >> ip4.txt rm ip.txt rm ip2.txt rm ip3.txt ip=$(cat $"ip4.txt") rm ip4.txt rm index.html
ip=`curl ifconfig.me`



