统计某代码目录下,java/c/c++/h 后缀代码文件的总行数,并且剔除文件路径中带tests字符串的文件:
(find ./sourcefolder/ -iname "*.java" -o -iname "*.h" -o -iname "*.c" -o -iname
"*.cpp" | grep -v "tests") | xargs wc -l
统计某代码目录下,java/c/c++/h 后缀代码文件的总行数,并且剔除文件路径中带tests字符串的文件:
(find ./sourcefolder/ -iname "*.java" -o -iname "*.h" -o -iname "*.c" -o -iname
"*.cpp" | grep -v "tests") | xargs wc -l