Parsing data from an NBE file

Erik Stephens erik at edgeos.com
Fri Nov 12 15:03:18 EST 2004


On Nov 12, 2004, at 12:54 PM, Christopher J Bidwell wrote:

> Say I did a scan on several address spaces and I want to "grep" out 
> only
> specific address space to another NBE file.  The format I've been 
> using is:
>
> grep 172.23.3 oldnbe.nbe > newnbe.nbe
>
> This obviously isn't very precise in that I'm going to get 172.23.3,
> 172.23.30-39, etc.  How can I make my greps more precise when doing 
> this?

grep '172\.23\.3\.' should restrict to just the .3 subnet.  Some builds 
of grep will do regex syntax by default.  That's why you should escape 
the period since it will match any character otherwise.


Best regards,
Erik Stephens                                      www.edgeos.com
                         Managed Vulnerability Assessment Services




More information about the Nessus mailing list