cidrgrep go get github.com/tomdoherty/cidrgrep cidrgrep "10.0.0.0/24" < file.log cidrgrep "10.0.0.0/24" file1.log file2.log file3.log Outputs lines which contain an IP within the CIDR block specified