统计代码行数

Posted by Tenghuan He on March 11, 2018

下面命令用于统计当前目录下(包括子目录)非空行的Scala代码行数

find . -name "*.scala" | xargs grep -v "^$" | wc -l