首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

怎么在所有的.py .txt .cpp文件 中grep “abc”和“123”两个字符串

2012-09-22 
如何在所有的.py.txt .cpp文件 中grep “abc”和“123”两个字符串?如何在所有的.py.txt .cpp文件 中grep “abc

如何在所有的.py .txt .cpp文件 中grep “abc”和“123”两个字符串?
如何在所有的.py .txt .cpp文件 中grep “abc”和“123”两个字符串?

[解决办法]

探讨

引用:

find . -name "*.py" -o -name "*.txt" -o "*.cpp" | xargs grep -E "abc|123"

Mode$ find . -name "*.py" -o -name "*.txt" -o "*.cpp" | xargs grep -E "abc|123"
find: 路径必须在表达式之前: *.cpp
……

热点排行