Quantcast
Channel: CSDN博客推荐文章
Viewing all articles
Browse latest Browse all 35570

linux在多文件中查找关键词的位置

$
0
0

一次编译u-boot时有个错误做不到nand_readd.o,本来应该找nand_read.o才对的,我用find -iname "nand_readd.*" 没有找到这个文件我想应该是关键此错误我就找,文件太多找不到,我在网上一查用了这个指令:

grep -r --include=*.h -o --include=*.cpp -o --include=*.c <key_words_to_search> <path_to_search>

其中-R, -r, --recursive
              Read  all files under each directory, recursively; this is equivalent to the -d
              recurse option.

结合实际:

grep -r --include=*.* nand_readd ~/u-boot/

很快就找到了

作者:sonbai 发表于2013-3-15 19:39:40 原文链接
阅读:0 评论:0 查看评论

Viewing all articles
Browse latest Browse all 35570

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>