Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Aug 2013 08:04:25 -0400
From:      Robert Huff <roberthuff@rcn.com>
To:        Fbsd8 <fbsd8@a1poweruser.com>
Cc:        questions <questions@FreeBSD.org>
Subject:   .sh script code to determine IPv4 or IPv6
Message-ID:  <20988.61897.78070.312049@jerusalem.litteratus.org>
In-Reply-To: <51FCE9C7.7020407@a1poweruser.com>
References:  <51FCE9C7.7020407@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Fbsd8 writes:

>  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?

	Not that I know of.
	But ... how hard can it be to figure out whether it uses '.' or
':'?


				Robert Huff




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