How do I - ffind - with multiple items

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Dec 24, 2008
21
0
#1
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
 
#6
|---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
 

samintz

Scott Mintz
May 20, 2008
1,229
11
Solon, OH, USA
#7
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
>
>
 
#9
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
>
>
>
>
 
#10
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
>
>
>
>