Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jan 2013 13:07:40 -0500
From:      Fbsd8 <fbsd8@a1poweruser.com>
To:        FreeBSD questions <questions@freebsd.org>
Subject:   sh script ?
Message-ID:  <5101786C.3070209@a1poweruser.com>

next in thread | raw e-mail | index | archive | help
I get this message [: 10.0.10.21: bad number on this code

    [ "${saved_ip}" -eq "${used_ip}" ] && echo "good match"

Both variables have valid ip addresses in them.
Why does it think the variable content is a number and not text?
What am I doing wrong?

Thanks for your help



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5101786C.3070209>