windows findstr的問題 - Windows

Table of Contents

小弟請教findstr有無&的功能

例如

find str "word str" *.txt 表示搜尋包含word 或(or) str的txt檔

如果要搜尋包含 word 且(and) str的txt檔要怎麼下command?


--

All Comments

Oscar avatarOscar2014-06-22
type *.txt | findstr "word" | findstr "str"
Oscar avatarOscar2014-06-25
恩...好像也不對,這樣不是同時找
Elizabeth avatarElizabeth2014-06-28
這樣吧...
Lauren avatarLauren2014-06-30
findstr "word" *.txt&&findstr "str" *.txt
Eden avatarEden2014-07-03
find money from pocket , no find
Hedy avatarHedy2014-07-03
那應該就沒辦法,findstr搜尋方式也是用部分的正則表
Rae avatarRae2014-07-05
示法,印象正則好像沒and的搜尋法的樣子要問高手了
Connor avatarConnor2014-07-07
看你要不要到regexp版那邊問看看