Windows equivalent for Unix find command to search multiple file types

前端 未结 2 1055
耶瑟儿~
耶瑟儿~ 2021-01-30 10:31

While having a cygwin installed in windows gives most of unix command, still i was wondering how to search multiple filetypes in one command using windows \"find\" command.

2条回答
  •  我在风中等你
    2021-01-30 10:57

    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.

提交回复
热议问题