findstr ms-dos command won't search sub directories

偶尔善良 提交于 2019-12-05 01:39:13
jon

You need to put /S at the beginning, i.e.:

findstr /S "thesis" *.tex

From the built in help:

C:\>findstr /?
Searches for strings in files.

FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [/X] [/V] [/N] [/M] [/O] [/P] [/F:file]
        [/C:string] [/G:file] [/D:dir list] [/A:color attributes] [/OFF[LINE]]
        strings [[drive:][path]filename[ ...]]

Your modifiers/switches, whatever they are called, need to come before your pattern/string

PowerApp101

You have your arguments in the wrong order, try this:

findstr /S "thesis" *.tex
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!