How do I - ffind - with multiple items

Dec 24, 2008
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
 
Dec 24, 2008
21
0
Only if they're on the same line (insert a * between the strings), or if you can do it with a regular expression (/E"...").

Yea - I'd really like it to do finds across multiple lines.

Feature request? (& thanks)

Jim Klein
 
May 20, 2008
11,415
99
Syracuse, NY, USA
|---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,503
16
Solon, OH, USA
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
>
>
 
May 20, 2008
603
0
Sammamish, WA
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
>
>
>
>
 
May 20, 2008
603
0
Sammamish, WA
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
Thread starter Title Forum Replies Date
Joe Caverly Multiple Text Searches at once using FFIND or TPIPE Support 4
J ffind does not find files Support 4
D ffind hangs on large file Support 18
Alpengreis ffind dialog (/W) problem Support 4
vefatica FFIND, temp files? ... not deleted? Support 0
S FFIND text that includes " Support 7
D ffind /e hangs Support 7
vefatica FFIND needs work Support 12
Kachupp FFIND TPIPE Support 9
Gamegod ffind bug with chinese Support 2
vefatica FFIND and multi-line regular expressions Support 4
vefatica Make FFIND a bit more friendly? Support 14
M Trying to use ffind with a @file.lst doesn't work Support 4
vefatica Corruption from FFIND? Support 5
vefatica FFIND /S and System32? (and an OT mystery) Support 14
T FFind - can we display n number of lines after the find? Support 2
vefatica Help nit (FFIND and DIR with /S) Support 0
R ffind not setting %_ffind_ vars if /f is used Support 7
M FFIND wordA AND wordB Support 4
vefatica FFIND and _? Support 1
B Fixed FFIND doesn't find last character in file without CR/LF at EOF Support 1
dcantor How to make line numbers fixed width in FFIND Support 11
vefatica FFIND /S, find directory with specified name? Support 7
D Why doesn't ffind find directory? Support 3
C FFind /w works but FFind /= doesn't? Support 2
vefatica FFIND goes crazy Support 8
Stefano Piccardi TCC 13 vs. TCC 14 different FFIND /E"d$" output Support 1
Steve Pitts How to? FFIND, regular expressions and double quotes Support 4
vefatica FFIND /S in my profile directory Support 2
A How to? Pass output from ffind to another command in a BTM file Support 5
Phileosophos Can FFIND match file names with a regular expression? Support 19
vefatica FFIND and size ranges Support 1
R How to use ffind to find older files? Support 9
M FFIND and LIST does not work for UTF-8 fles Support 10
C FFIND ERRORLEVEL Support 2
L FFIND no result display Support 10
H Directory wildcards not working with ffind Support 3
D ffind and directories Support 2
Stefano Piccardi detecting BOM, FFIND multibyte regex Support 18
dcantor FFIND syntax -- is /E"regex" /X supported? Support 2
S FFIND and quoted strings Support 4
S FFIND /E"reg exp" : not case insensitive Support 4
J Problem with FFIND Support 1
MickeyF TCC crashing when copying multiple files (now resolved) Support 6
N Unable to bind multiple keys to the same key mapping directive Support 9
vefatica Console not redrawn in BTM or with multiple commands Support 4
C duplicate files in multiple plugin sites Support 9
kb6ojs ALIAS with multiple commands? Support 9
vefatica How do I do this with a multiple-line DO? Support 7
R How to? Append files in multiple subfolders using copy? Support 8

Similar threads