When comparing two strings, if the strings contain spaces then you must have a dollar sign at each end of the variable name...
if [ $IP$ = $OLDIP$ ]
then
blah
blah
fi
Note also the spaces between the variable names and the '=' symbol...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment