hello everyone,
shouldn't this script return true if the ip addresses match?
Code:
#!/bin/bash
TESTIP=192.168.0.1
echo "=$TESTIP"
HOSTIP=`host synthnassizer.no-ip.org | grep -Eo \([0-9]\{1,3\}.\)\{3\}[0-9]\{1,3
\}`
echo "=$HOSTIP"
if [ TESTIP = HOSTIP ]; then
echo "they are the same"
else
echo "they are different"
fi
it always returns 'they are different' to me even though echoing them makes them look alike...
thank you for your help
nass