하부 디렉토리의 txt 파일에서 hello there 를 찾을 때

findstr /s /c:"hello there" *.txt


findstr /p /s /c:"hello there" *.txt  (binary file 은 제외한다)

출처:http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/findstr.mspx?mfr=true


findstr /?

...

/P : 인쇄할 수 없는 텍스트가 포함된 파일은 건너뜁니다 (Printable)

/S : 현재 디렉토리와 모든 하위 디렉터리에서 일치하는 파일을 찾습니다 (Subdirectory)

/C:파일   지정된 파일롭터 찾는 텍스트를 받습니다