Date: Fri, 07 Jun 2002 14:04:39 +1000 From: BSD Freak <bsd-freak@mbox.com.au> To: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Converting decimal dotted subnet mask to CIDR in a script Message-ID: <f9079af91739.f91739f9079a@mbox.com.au>
next in thread | raw e-mail | index | archive | help
Hi all, I have a variable in a script we use $MASK=255.255.255.0 Is there a utility or an easy way to process $MASK and get $MASKCIDR=24 the CIDR value of 255.255.255.0 Many thanks... --------------------------------------------------------------------- Faxes delivered directly to any email address, new to mBox! Find out more http://www.mbox.com.au/fax To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f9079af91739.f91739f9079a>