Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


HPR4041: Using grepcidr to find IPs in a netblock

Hosted by Deltaray on 2024-01-29 00:00:00
Download or Listen

grepcidr is usually available from your distribution's default repositories, so on Debian based systems you could install it with:

sudo apt install grepcidr

Example of grepcidr use:

grepcidr 40.10.32.0/22 /var/log/syslog

You can read more about CIDR notation on the Wikipedia page for CIDR

Comments



More Information...


Copyright Information

Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.

The HPR Website Design is released to the Public Domain.