How to count total code lines using linux command Tue Aug 31 2010 计算当前目录下所有Java程序行数: 1find . -name "*.java" | xargs wc -l