How to write a search pattern to include a space in findstr?

后端 未结 4 1481
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-29 20:02

I want to search all files in a certain directory for occurrences of statements such as

  Load frmXYZ

I am on Windows 7, using the f

4条回答
  •  庸人自扰
    2020-12-29 20:18

    Use the /c option:

    findstr /n /c:"Load frm" *.*
    

    From the help (findstr /?):

    /C:string  Uses specified string as a literal search string.
    

提交回复
热议问题