Post Abc2g85ZevYN1b7QK8 by rrwo@floss.social
 (DIR) More posts by rrwo@floss.social
 (DIR) Post #Abc2g5oq6Ayjz7H1xg by rrwo@floss.social
       2023-11-01T14:15:47Z
       
       0 likes, 0 repeats
       
       Is there a command-line tool that can match IP4 addresses against a set of network blocks?The user case is to filter out lines from an Apache log file.(I'm tempted to write my own. In which case, what should I call it?)
       
 (DIR) Post #Abc2g71zal5tkCR36O by rrwo@floss.social
       2023-11-02T08:30:15Z
       
       0 likes, 0 repeats
       
       I've started writing something called "ipgrep". There are similar tools but none that do what I want.
       
 (DIR) Post #Abc2g85ZevYN1b7QK8 by rrwo@floss.social
       2023-11-02T22:51:32Z
       
       0 likes, 0 repeats
       
       I've got a prototype #Perl utility called "ipgrep" that lets you grep a file (including a gzipped file) by IP address or netblock, for example    ipgrep 66.249/16 /var/log/access.logIt's online at https://github.com/robrwo/perl-ipgrep It supports so.e of the same options that GNU grep has.This version only supports IP4 addresses, isn't the most sophisticated or efficient. Probably has bugs too. Pull requests appreciated.
       
 (DIR) Post #Abc2g98nkPjGHtdVzc by rrwo@floss.social
       2023-11-08T09:23:47Z
       
       0 likes, 1 repeats
       
       I've uploaded a #Perl utility called "ipgrep" to #CPAN https://metacpan.org/release/RRWO/ipgrep-v0.4.3It allows you to grep a file (including a gzipped file) by IP address or netblock, for example    ipgrep 66.249/16 /var/log/access.logIt supports many of the same options as GNU grep.This version supports IP6 addresses and adds more options. It also has tests and is installable using Makefile.PL.It's also on GitHub at https://github.com/robrwo/perl-ipgrep