From owner-freebsd-questions@FreeBSD.ORG Sat Aug 3 11:30:32 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 977BB3DC for ; Sat, 3 Aug 2013 11:30:32 +0000 (UTC) (envelope-from fbsd8@a1poweruser.com) Received: from mailch-3.name-services.com (mailch-3.name-services.com [98.124.252.185]) by mx1.freebsd.org (Postfix) with ESMTP id 836692FA2 for ; Sat, 3 Aug 2013 11:30:32 +0000 (UTC) Received: from mailch.name-services.com (localhost [127.0.0.1]) by mailch.name-services.com (Postfix) with SMTP id D0AE962DD4B for ; Sat, 3 Aug 2013 04:30:27 -0700 (PDT) X-Sender-Id: 173.88.196.224 Received: from mail-24.name-services.com (sjl0vwsmail09.prod.dm.local [10.7.17.59]) by 0.0.0.0:2500 (trex/4.8.23); Sat, 03 Aug 2013 11:30:27 GMT X-Pool-Id: 4 Received: from [10.0.10.1] (cpe-173-88-196-224.neo.res.rr.com [173.88.196.224]) by mail-24.name-services.com with SMTP; Sat, 3 Aug 2013 04:30:16 -0700 Message-ID: <51FCE9C7.7020407@a1poweruser.com> Date: Sat, 03 Aug 2013 07:30:15 -0400 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: questions Subject: .sh script code to determine IPv4 or IPv6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Sat, 03 Aug 2013 11:30:32 -0000 I have a .sh script that I need to determine if the entered IP address is IPv4 or IPv6. Is there some .sh command that does this? Thanks