I am working on writing some scripts to grep
certain directories, but these directories contain all sorts of file types.
(我正在编写一些脚本来grep
某些目录,但这些目录包含各种文件类型。)
I want to grep
just .h
and .cpp
for now, but maybe a few others in the future.
(我想grep
只是.h
和.cpp
现在,但也许其他几个人的未来。)
So far I have:
(到目前为止,我有:)
{ grep -r -i CP_Image ~/path1/;
grep -r -i CP_Image ~/path2/;
grep -r -i CP_Image ~/path3/;
grep -r -i CP_Image ~/path4/;
grep -r -i CP_Image ~/path5/;}
| mailx -s GREP [email protected]
Can anyone show me how I would now add just the specific file extensions?
(任何人都可以告诉我如何添加特定的文件扩展名?)
ask by Jason translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…