-
Notifications
You must be signed in to change notification settings - Fork 0
/
cidr.1
42 lines (42 loc) · 848 Bytes
/
cidr.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.Dd $Mdocdate$
.Dt CIDR 1
.Os
.Sh NAME
.Nm cidr
.Nd convert CIDR notation to address range
.Sh SYNPOSIS
.Nm cidr
.Op Ar cidr ...
.Sh DESCRIPTION
.Nm
converts IPv4 CIDR notation to its representative address range after applying
its subnet mask. Multiple CIDRs can be converted at once. If no arguments are
specified, standard input is used.
.Sh EXAMPLES
Convert CIDR from argument list:
.Pp
.Dl $ cidr 10.0.0.0/24
.Pp
Convert multiple CIDRs:
.Pp
.Dl $ cidr 10.0.0.0/24 192.168.0.10/24
.Pp
Convert from standard input:
.Bd -literal -offset indent
$ cidr
10.0.0.0/24
.Ed
.Dl
.Pp
Convert from piped standard input:
.Pp
.Dl $ echo 10.0.0.0/24 | cidr
.Pp
Convert from a file containing a list of CIDRs:
.Pp
.Dl $ cidr <cidrlist
.Pp
.Sh AUTHORS
.An Cristian Canedo Aq Mt [email protected]
.Sh CAVEATS
Malformed and invalid CIDRs are quietly ignored.