`
sillycat
  • 浏览: 2490573 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Count Lines of Codes on Mac

 
阅读更多
Count Lines of Codes on Mac

Very Simple Command can do total lines.
> git ls-files | xargs cat | wc -l

More info in Each file
> git ls-files | xargs wc -l

Need to exclude the jars
> scala|sbt|conf|txt|xml|properties|md]

Only check the Source Codes
> git ls-files | grep "\(.md\|.properties\|.xml\|.scala\|.sbt\|.conf\|.txt\)$" | xargs wc -l

References:
http://tuchangwei.github.io/2014/12/06/CLOC-Count-Lines-Of-Code-on-Mac/

http://cloc.sourceforge.net/
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics