Windows equivalent for Unix find command to search multiple file types Windows equivalent for Unix find command to search multiple file types windows windows

Windows equivalent for Unix find command to search multiple file types


This will locate all files with the given extensions in the current working directory and all subdirectories:

dir *.cpp *.h *.java /b/s

See https://technet.microsoft.com/en-us/library/cc755121.aspx for more info on using dir.


findstr /p /s /i .

above command searches for the given text in current directories and sub directories. /n will print the line numbers too.