Windows遞歸grep命令行 - Windows recursive grep command-line

問題:

I need to do a recursive grep in Windows, something like this in Unix/Linux: 我需要在Windows中做一個遞歸grep,在Unix / Linux中是這樣的:

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

or the more-preferred method: 或者更優選的方法:

find . -print | xargs grep -i 'string'

I'm stuck with just cmd.exe, so I only have Windows built-in commands. 我只是堅持使用cmd.exe,所以我只有Windows內置命令。 I can't install Cygwin , or any 3rd party tools like UnxUtils on this server unfortunately. 我不能在這臺服務器上安裝Cygwin或任何第三方工具,如UnxUtils I'm not even sure I can install PowerShell. 我甚至不確定我是否可以安裝PowerShell。 Any suggestions using only cmd.exe built-ins (Windows 2003 Server)? 任何建議只使用cmd.exe內置插件(Windows 2003 Server)?


解決方案:

參考一: https://en.stackoom.com/question/2vag
參考二: https://stackoom.com/question/2vag
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章