Hmm, the problem is that the script expects your IP to start with 203, but yours starts with 60.
Therefore your old/new IP is a whole load of html not just the IP
Try changing the script
Code:
IP=`$GREP 203 index.html |$SED 's/<p><b>//g' | $SED 's/<\/b>//g'`
to
Code:
IP=`$GREP 60 index.html |$SED 's/<p><b>//g' | $SED 's/<\/b>//g'`
Or maybe you've already done that? Because you are getting every bit of html that contains the number 60.
In which case try changing it to
Code:
IP=`$GREP "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*" index.html |$SED 's/<p><b>//g' | $SED 's/<\/b>//g'`
Bookmarks