On 03 jul 2005, at 15:39, fbsd_user wrote:

What is the sh coding to strip the periods from a IP address??


raw_ip='10.0.10.5'      this is starting
num_ip='100105'        and this is what I need to convert to.



Hi,
many ways, here's one:

printf '10.0.10.5' | sed 's/\.//g'

Arno

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to