Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

How do I - ffind - with multiple items

Dec
21
0
Is there a way to do multi-searches using ffind?

Something like:

ffind /t"os=vista64" && "servicepack=1" *.txt

(on multiple lines within the same file)

Thanks,
Jim
 
|---Quote (Originally by jimklein)---
|Is there a way to do multi-searches using ffind?
|
|Something like:
|
|ffind /t"os=vista64" && "servicepack=1" *.txt
|---End Quote---

This (kludge) seems effective to find batch files containing both "foo" and
"for". For two search strings, an alias might be appropriate. For more, you
could write a batch file to compose the necessary command line.

v:\> do file in /p ffind /b /t"foo" *.bat;*.btm ( ffind /b /t"for" %file )
V:\cursor01.btm
V:\dotest2.btm
V:\losserror.btm
 
Try

ffind /v /e"os=vista64|servicepack=1" *.txt

-Scott

jimklein <> wrote on 05/20/2011 02:36:14 PM:


>
> Is there a way to do multi-searches using ffind?
>
> Something like:
>
> ffind /t"os=vista64" && "servicepack=1" *.txt
>
> Thanks,
> Jim
>
>
 
How about something like ffind /t"os=vista64" *.txt | ffind /t"servicepack=1"

Sent from Cookie's iPhone
Jim Cook

On May 20, 2011, at 12:32, jimklein <> wrote:


> ---Quote (Originally by rconn)---
> Only if they're on the same line (insert a * between the strings), or if you can do it with a regular expression (/E"...").
> ---End Quote---
>
> Yea - I'd really like it to do finds across multiple lines.
>
> Feature request? (& thanks)
>
> Jim Klein
>
>
>
>
 
Sorry. My suggestion only works if you get some surrounding lines as well.

Sent from Cookie's iPhone
Jim Cook

On May 20, 2011, at 12:32, jimklein <> wrote:


> ---Quote (Originally by rconn)---
> Only if they're on the same line (insert a * between the strings), or if you can do it with a regular expression (/E"...").
> ---End Quote---
>
> Yea - I'd really like it to do finds across multiple lines.
>
> Feature request? (& thanks)
>
> Jim Klein
>
>
>
>
 

Similar threads

Back
Top