From owner-freebsd-questions@FreeBSD.ORG Thu Jan 24 18:07:42 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 75D4A83A for ; Thu, 24 Jan 2013 18:07:42 +0000 (UTC) (envelope-from fbsd8@a1poweruser.com) Received: from mail-03.name-services.com (mail-03.name-services.com [69.64.155.195]) by mx1.freebsd.org (Postfix) with ESMTP id 6743BAFF for ; Thu, 24 Jan 2013 18:07:42 +0000 (UTC) Received: from [10.0.10.3] ([173.88.197.103]) by mail-03.name-services.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 24 Jan 2013 10:07:42 -0800 Message-ID: <5101786C.3070209@a1poweruser.com> Date: Thu, 24 Jan 2013 13:07:40 -0500 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: FreeBSD questions Subject: sh script ? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 24 Jan 2013 18:07:42.0981 (UTC) FILETIME=[B470DB50:01CDFA5D] X-Sender: fbsd8@a1poweruser.com X-Authenticated-Sender: fbsd8@a1poweruser.com X-EchoSenderHash: [fbsd8]-[a1poweruser*com] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2013 18:07:42 -0000 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