Welcome!

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

SignUp Now!

How to? Use LIST to list all files that FFIND found

Feb
5
0
I can do FFIND ... > filelist.txt
then list @filelist.txt

but I'd like to do this all at once, i.e.

ffind /s/b/t"stuff to look for" *.py | list

I've tried
ffind /s/b/t"stuff to look for" *.py | list -s

but that only shows the files that ffind found.

Is there a way to short cut that?

Ironically, I was looking for this with FIND or GREP on Linux also, terrible search terms for good hits.

Yea, I could easily build a batch file to do it, but I hop around on different servers all the time, would be notice to know if there's a 'native' way.

== John ==
 
I've tried
ffind /s/b/t"stuff to look for" *.py | list -s

but that only shows the files that ffind found.
Isn't that what you want?

If you also want to see the found text, remove "/b". And if you want ALL the found text, add "/v".
 
I can do FFIND ... > filelist.txt
then list @filelist.txt

but I'd like to do this all at once, i.e.
...

So, you want to list the content of the files that contain "stuff to look for", without getting other files, is that correct?

If so, you can do it with the clipboard; note that @CON: doesn't work here.

(ffind /s /b /t"stuff to look for" *.py > CLIP:) & list @CLIP:
 
The LIST command is obsolete. You should use VIEW instead. You can pipe to VIEW /F. E.g.
Code:
dir | view /f
 

Similar threads

Back
Top