X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=doc%2Fman1%2Fhath.1;h=488cebbf82e9580d022d0791a21bc3a5c0e5e0e9;hb=097949fec1de71ad9f7d94dc16980c8ca4a18640;hp=0316c56a3ada9fc131940a8c91d541daeda2aa25;hpb=006f90418a578308104b75362f0b595466900eed;p=hath.git diff --git a/doc/man1/hath.1 b/doc/man1/hath.1 index 0316c56..488cebb 100644 --- a/doc/man1/hath.1 +++ b/doc/man1/hath.1 @@ -119,6 +119,7 @@ Without \fB\-\-barriers\fR, you can match things you shouldn't: .fi Using \fB\-\-barriers\fR can prevent this: + .nf .I $ echo 127.0.0.100 | grep -P $(echo 127.0.0.1/32 | hath -b) .I $ echo $? @@ -127,10 +128,26 @@ Using \fB\-\-barriers\fR can prevent this: But, this may also cause the regex to match something that isn't an IP address: + .nf .I $ echo x127.0.0.1x | grep -Po $(echo 127.0.0.1/32 | hath -b) x127.0.0.1x .fi + +.IP \fB\-\-normalize\fR,\ \fB\-n\fR +(reduced mode only) + +Normalize the output representation of CIDRs by zeroing the host +bits. This option only has an effect in \(dqreduced\(dq mode, because +in the \(dqduped\(dq or \(dqdiffed\(dq modes, it would be confusing to +see CIDRs that you did not input in the first place being removed. + +.nf +.I $ echo 127.0.0.1/8 | hath reduced +127.0.0.1/8 +.I $ echo 127.0.0.1/8 | hath reduced --normalize +127.0.0.0/8 +.fi .SH BUGS Send bugs to michael@orlitzky.com.