首页 > 其他 > 详细

文件件查找字符串

时间:2019-12-19 23:19:45      阅读:86      评论:0      收藏:0      [点我收藏+]
grep -rnw /path/to/somewhere/ -e pattern

-r or -R is recursive,
-n is line number, and
-w stands for match the whole word.
-l (lower-case L) can be added to just give the file name of matching files.

 

https://stackoverflow.com/a/16957078/8025086

 

文件件查找字符串

原文:https://www.cnblogs.com/buxizhizhoum/p/12070642.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!