本文介绍了用于搜索多种文件类型的 Unix find 命令的 Windows 等效项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
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. ie: find . -name *.cpp -o -name *.h -o -name *.java
The above command gives me a list of all cpp, h & java, what will be the equivalent using the windows find?
解决方案This will locate all files with the given extensions in the current working directory and all subdirectories:
dir *.cpp *.h *.java /b/sSee technet.microsoft/en-us/library/cc755121.aspx for more info on using dir.
更多推荐
用于搜索多种文件类型的 Unix find 命令的 Windows 等效项
发布评论