PRIPS(1)

πŸ“¦
version 1.3.1 Β· 2 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– PRIPS(1) πŸ’–

okay so bestie, this is the manual page for prips, from the General Commands Manual section. she's little, she's mighty, and she prints IP addresses. let's get into it πŸŽ€


🌸 NAME 🌸

prips β€” print the IP addresses in a given range ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

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

πŸ’… DESCRIPTION πŸ’…

so the whole vibe of prips is: you give her an IP range, she gives you every single IP address in that range. that's it. that's the job. periodt πŸ’…

and like, why do you care? because there are tools out there that only know how to deal with one host at a time, and prips is the friend who feeds them the whole guest list one by one. the manpage literally name-drops whois(1) as an example. so you pipe, you loop, you slay 🫢

✨ the options, bestie ✨

here's every flag she takes, no skips, no cuts:

  • -c β€” print the range in CIDR notation. cute and compact.
  • -d delim β€” set the delimiter to the character whose ASCII code is delim, where 0 <= delim <= 255. (yes, it's a number, not the character itself. read it twice, i did too 😭)
  • -e <x.x.x,x.x> β€” exclude ranges from the output.
  • -f format β€” set the format of addresses: hex, dec, or dot.
  • -h β€” show a summary of the options. the little "hi hello what do you need" flag πŸ’–
  • -i incr β€” set the increment to x. skip-ahoy.

🌈 ENVIRONMENT 🌈

ngl this part is a nothing-burger, and i love that for her: the prips tool's operation is not influenced by any environment variables. zero. none. she's unbothered πŸ’œ


πŸŽ€ FILES πŸŽ€

same energy, bestie: the prips tool's operation is not influenced by any files. she needs nothing from your filesystem. lowkey iconic πŸ™ˆ


⭐ EXAMPLES ⭐

this is the fun part, let's actually do stuff:

display all the addresses in a reserved subnet:

prips 192.168.32.0 192.168.32.255

the same thing, but 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 as the 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

see how each one's doing a little something different? chef's kiss πŸ‘‘ that -d 32 one is a space, btw, because 32 is the ASCII code for space. iykyk 🌸


πŸ’€ DIAGNOSTICS πŸ’€

the prips utility exits 0 on success, and >0 if an error occurs. that's the whole story. if it's zero, we're good; if it's anything bigger, something went sideways 😭


πŸ”₯ SEE ALSO πŸ”₯

ipsc(1), gipsc(1) β€” go say hi to the cousins πŸ¦‹


🌟 STANDARDS 🌟

No standards were harmed in the writing of the prips tool. (this is a direct quote, i would never lie to you, and honestly? iconic behavior. she said "we're not doing that today" πŸ’…)


πŸ“œ HISTORY πŸ“œ

so here's the lore: the prips tool was originally written by Daniel Kelly, and was later adopted by Peter Pentchev. this manual page was originally written by Juan Alvarez for the Debian GNU/Linux system, and was later added to the prips distribution and converted to mdoc format by Peter Pentchev. a whole glow-up arc, we love to see it πŸ’–


πŸ’œ AUTHORS πŸ’œ

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

the founding mothers... i mean, the founding legends 🫢


πŸ™ˆ BUGS πŸ™ˆ

found a bug? don't be shy, bestie β€” please report any bugs in the prips tool to its current maintainer, Peter Pentchev. he's the one holding the aux cord now πŸŽ€

also, just so you know where this page comes from: it's the Debian build, dated March 1, 2011. that's the source and the date, and that's your sign-off, mwah πŸ’‹βœ¨
πŸ“¦ where this page comes from