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

Feb 15, 2016
5
0
62
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 ==
 
May 20, 2008
11,926
124
Syracuse, NY, USA
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".
 
Dec 29, 2009
48
1
Atlanta, GA
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:
 

Similar threads