用grep查找包含指定内容的文件


grep -R -w -l 'boot' /etc

只显示文件名不显示内容

 

-R 递归?

 

 

root@ubuntu:/home/www/apollo/static/js# grep -R -w -l 'Oracle执行统计' ./
./189.4cc96b6d078107d8613e.js
./70.8e3d20c35a0fee5be98c.js
./aaa.txt
./163.5cf37bbaef20676e85f2.js

root@ubuntu:/home/www/apollo/static/js#


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM