用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