DOS Command FindStr
Asked Answered
L

1

5

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

Lexical answered 26/10, 2010 at 18:3 Comment(0)
S
12

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

Scrabble answered 26/10, 2010 at 18:15 Comment(1)
Thanks. That helped in skipping those binary files.Lexical

© 2022 - 2024 — McMap. All rights reserved.