DOS命令FindStr

发布于 2024-09-29 23:34:03 字数 276 浏览 0 评论 0原文

我需要使用DOS命令FINDSTR来搜索我们所有与其他类型的文件(例如PDF、exe、dll等)混合的源代码文件。

我不需要搜索那些二进制文件。有没有办法排除二进制文件?

我的命令看起来像

findstr /r /n /o /s /g:c:\projects\vsssearch\muafinddata.txt /d:c:/projects/axl *.axl > output.txt

提前感谢您的任何见解。

约翰

I have a need to use the DOS command FINDSTR to search in all our source code files mixed with other types of files such as PDF, exe, dll, etc.

I do not need to search those binary files. Is there a way to exclude binary files?

My command looks like

findstr /r /n /o /s /g:c:\projects\vsssearch\muafinddata.txt /d:c:/projects/axl *.axl > output.txt

Thanks in advance for any insight.

John

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沦落红尘 2024-10-06 23:34:03

你试试/p吗?帮助说:“/P 跳过带有不可打印字符的文件。”

Do yo try /p? Help says: "/P Skip files with non-printable characters."

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文