Windows中查找某个目录下的所有文件中包含某个字符串的命令

findstr可以完成这个工作。

 

[html]  view plain copy
 
  1. >findstr /s /i "string" *.*  


上面的命令表示,当前目录以及当前目录的所有子目录下的所有文件中查找"string"这个字符串。

 

 

*.*表示所有类型的文件。

/s 表示当前目录以及所有子目录

/i 表示不区分大小写

 

可以参考help findstr的输出解释来使用此命令。

 

扫描二维码关注公众号,回复: 353568 查看本文章

本来转自:http://blog.csdn.net/bendanban/article/details/8860344

猜你喜欢

转载自daizj.iteye.com/blog/2210610