红联Linux门户
Linux帮助

Ubuntu命令行查找文件和字符串

发布时间:2014-11-12 22:13:07来源:linux网站作者:designhouse

Ubuntu命令行查找文件和字符串:

以查找字符串 isascii 为例:

find  -name *.cpp|xargs grep -rnws isascii

find  -name *.c|xargs grep -rnws isascii

find  -name *.h|xargs grep -rnws isascii

grep -rnws isascii . --include=*.h

grep -rnws isascii . --include=*.cpp

grep -rnws isascii .