首页 > 代码库 > linux grep命令

linux grep命令

--查找某文件下文件内容有xxx,关键词加单引号或双引号或者不加都行
grep -r 同花顺 ./TSinaWeiboCrawl*/201210*
grep -r ‘同花顺‘ ./TSinaWeiboCrawl*/201210*
grep -r "同花顺" ./TSinaWeiboCrawl*/201210*
http://www.cnblogs.com/end/archive/2012/02/21/2360965.html

linux grep命令