[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subnet address

From: Archimerged Ark Submedes
Subject: Re: Subnet address
Date: Sat, 21 Jul 2007 06:28:51 -0400

On 7/20/07, Mike Frysinger <address@hidden> did not read the question.

The answer is:

/sbin/ifconfig eth0 |
grep 'inet addr' | tr .: '  ' |
(read inet addr a b c d Bcast e f g h Mask i j k l;
echo $(($a & $i)).$(($b & $j )).$(( $c & $k )).$(( $d & $l )) )

reply via email to

[Prev in Thread] Current Thread [Next in Thread]