日期:2014-05-16  浏览次数:20595 次

如何在所有的.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
……