Windows recursive grep command-line

前端 未结 8 783
栀梦
栀梦 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 09:03

    Select-String worked best for me. All the other options listed here, such as findstr, didn't work with large files.

    Here's an example:

    select-string -pattern "" -path ""
    

    note: This requires Powershell

提交回复
热议问题