Date: Fri, 29 Apr 2005 19:44:05 -0700 From: Jeff Makey The patch included below adds regular expression processing to allow grepcidr to find IP addresses anywhere on the input. Tested against the README file shipped with grepcidr-1.3, the first command below shows one line of output and the second correctly shows none: grepcidr 192.168.0.0/20 README grepcidr 192.168.16.0/20 README My changes work on Red Hat Linux 9.0, Sun Solaris, SGI IRIX, and IBM AIX. It should be possible to use regular expression processing and avoid calling sscanf() in the ip_to_uint() function, but it may not be worth the effort. Note that for a number the source lines the only thing I changed is the indenting. After applying the patch use "diff -w" to see just the coding changes. Thanks for writing grepcidr. Feel free to include this change in the next release. :: Jeff Makey jeff@sdsc.edu