Hrmm, check this out:
test.txt:
172.23.3.5
172.23.3.46
172.23.30.5
172.23.31.32
$grep '172\.23\.3\.' test.txt
172.23.3.5
172.23.3.46
> Well, I just tried:
>
> $stdout = shell_exec(" grep 172\.23\.3\. cr-svrs-27Oct04-1423.nbe >
> 172.23.3.0.nbe ");
>
> I'm still getting 172.23.30 in there... I want to only be able to get
> 172.23.3. Doesn't seem to be working as planned.
>
>
>
> |---------+---------------------------->
> | | SRH-Lists |
> | | <[EMAIL PROTECTED]|
> | | om> |
> | | |
> | | 11/12/2004 01:28 |
> | | PM |
> |---------+---------------------------->
>
> >-------------------------------------------------------------
> ----------------------------------------------------------------|
> |
> |
> | To: 'Christopher J Bidwell'
> <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> |
> | cc:
> |
> | Subject: RE: Parsing data from an NBE file
> |
>
> >-------------------------------------------------------------
> ----------------------------------------------------------------|
>
>
>
>
> if you wanted, say, 172.23.31-33 you could use this regexp
> '172\.23\.3[1-3]'
>
>
>
> > Hi all,
> >
> > 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?
> >
> > Thanks,
> > Chris
> >
> >
> >
> > _______________________________________________
> > Nessus mailing list
> > [EMAIL PROTECTED]
> > http://mail.nessus.org/mailman/listinfo/nessus
> >
>
_______________________________________________
Nessus mailing list
[EMAIL PROTECTED]
http://mail.nessus.org/mailman/listinfo/nessus