Date: Tue, 04 Jun 2002 22:36:41 +1000 From: BSD Freak <bsd-freak@mbox.com.au> To: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Getting network and broadcast addresses in a shell script Message-ID: <dd3f13dcfdec.dcfdecdd3f13@mbox.com.au>
next in thread | raw e-mail | index | archive | help
Hi all, I have the following shell script I am writing in which I need to get the $network and $broadcast: #!/bin netmask=255.255.255.0 ip=192.168.0.1 network=`do some magic with $netmask and $ip` broadcast=`do some more magic with $netmask and $ip` echo $network echo $broadcast Can anyone help me with the magic? --------------------------------------------------------------------- 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?dd3f13dcfdec.dcfdecdd3f13>