代码行数统计及专业统计工具

find . -name "*.java" -o -name "*.xml" -o -name "*.properties" | xargs cat | tr -d '\r' | sed 's/^[ \t]*//g' | grep -v "^$" | grep -v "^/[/*]" | grep -v "^#" |wc -l 

 

find 命令:

http://man.linuxde.net/find

 

相关资料:http://blog.csdn.net/lida2003/article/details/9896403

猜你喜欢

转载自fengbin2005.iteye.com/blog/2409919