On Mon, 27 Dec 2004 15:55:52 -0700, Erik Stephens <[EMAIL PROTECTED]> wrote:
> On Dec 27, 2004, at 3:08 PM, Christopher J Bidwell wrote:
>
> > Is there a way that I can grep out a specific IP range out of an NBE
> > file?
> >
> > grep '192\.168\.0\.[3-25]' old.nbe > new.nbe
> >
> > I thought this would have worked but it doesn't give me the results I'm
> > looking for.
>
> You're giving it a regular expression and those semantics are hard to
> represent with regular expressions. You could try this awk recipe:
>
one small change, this:
> gawk -F '[|]' '$1 != "results" { print $0; } $1 == "results" {
to this:
gawk -F '[|]' '$1 != "results" { print $0; } $1 == "results" &&
$3~/^192\.168\.0\./ {
just in case he is scanning more then 1 class C network
marc
_______________________________________________
Nessus mailing list
[email protected]
http://mail.nessus.org/mailman/listinfo/nessus