#!/bin/bash rm -f IP.* wget -q http://www.whatismyip.com -O IP.txt cat IP.txt | grep 'Your IP Is' | awk -F" " {'printf $5'} | cut -c 0-13