Windows equivalent for Unix find command to search multiple file types

ぃ、小莉子 提交于 2019-12-02 15:20:29

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!