GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PRIPS(1) FreeBSD General Commands Manual PRIPS(1)

prips
print the IP addresses in a given range

prips [-c] [-d delim] [-e exclude] [-f format] [-i incr] start end

prips [-c] [-d delim] [-e exclude] [-f format] [-i incr] CIDR-block

prips -h

The prips tool can be used to print all of the IP addresses in a given range. It can enhance tools that only work on one host at a time, e.g. whois(1).

The prips tool accepts the following command-line options:

Print the range in CIDR notation.
delim
Set the delimiter to the character with ASCII code delim where 0 <= delim <= 255.
<x.x.x,x.x>
Exclude ranges from the output.
format
Set the format of addresses (hex, dec, or dot).
Show summary of options.
incr
Set the increment to 'x'.

The prips tool's operation is not influenced by any environment variables.

The prips tool's operation is not influenced by any files.

Display all the addresses in a reserved subnet:

prips 192.168.32.0 192.168.32.255

The same, using CIDR notation:

prips 192.168.32.0/24

Display only the usable addresses in a class A reserved subnet using a space instead of a newline for a delimiter:

prips -d 32 10.0.0.1 10.255.255.255

Display every fourth address in a weird block:

prips -i 4 192.168.32.7 192.168.33.5

Determine the smallest CIDR block containing two addresses:

prips -c 192.168.32.5 192.168.32.11

The prips utility exits 0 on success, and >0 if an error occurs.

ipsc(1), gipsc(1)

No standards were harmed in the writing of the prips tool.

The prips tool was originally written by Daniel Kelly and later adopted by Peter Pentchev. This manual page was originally written by Juan Alvarez for the Debian GNU/Linux system and later added to the prips distribution and converted to mdoc format by Peter Pentchev.

Daniel Kelly ⟨dan@vertekcorp.com⟩
Juan Alvarez ⟨jalvarez@fluidsignal.com⟩
Peter Pentchev ⟨roam@ringlet.net⟩

Please report any bugs in the prips tool to its current maintainer,
Peter Pentchev.
March 1, 2011 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.