.sh script code to determine IPv4 or IPv6

Robert Huff roberthuff at rcn.com
Sat Aug 3 12:04:27 UTC 2013


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



More information about the freebsd-questions mailing list