Windows recursive grep command-line

前端 未结 8 782
栀梦
栀梦 2020-12-12 08:44

I need to do a recursive grep in Windows, something like this in Unix/Linux:

grep -i \'string\' `find . -print`

or the more-preferred metho

8条回答
  •  暖寄归人
    2020-12-12 08:49

    for /f %G in ('dir *.cpp *.h /s/b') do  ( find /i "what you search"  "%G") >> out_file.txt
    

提交回复
热议问题