View Single Post
  #4  
Old November 10th 18, 03:55 PM posted to microsoft.public.windowsxp.general
Shadow
external usenet poster
 
Posts: 1,638
Default windows batch file find command cmd line string

On Sat, 10 Nov 2018 00:17:00 +0000, Logan MacEwens
wrote:

find . -type f -print0 | xargs -0 -I{} grep -l abc {} | xargs -I{} emacs --eval='(find-file "{}")' --eval='(search-forward "abc")'

Is there any way to run a find like that on Windows
in a batch file command of some sort to find
the string "abc" in text files only?

It has to run inside a batch file.


You can pipe the text content into findstr

command for text content 2&1| findstr /i "yourstring"

Can't remember enough Unix to translate your shell command.
[]'s
--
Don't be evil - Google 2004
We have a new policy - Google 2012
Ads