Last active
October 16, 2017 14:46
-
-
Save bryanhuntesl/db8e8bf4347e0ef8ef40bb7c124fbbcf to your computer and use it in GitHub Desktop.
How many lines of code are there in riak 2.2.3?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -regex '.*\(\.erl$\|\.cc$\|\.c$\|\.h$\|\.hrl$\|\.yrl$\|\.rebar.config$\|\.java$\)' -exec wc -l {} \; | awk | |
'START{count=0} {count=count + $1} END{print count}' |
Or just use cloc
root@8ea8524a816b:~/riak/distdir/riak-clone# cloc .
2829 text files.
2686 unique files.
3233 files ignored.
http://cloc.sourceforge.net v 1.60 T=7.35 s (267.7 files/s, 64528.7 lines/s)
--------------------------------------------------------------------------------
Language files blank comment code
--------------------------------------------------------------------------------
Erlang 1327 37578 61169 230260
Javascript 32 12109 20373 30692
C++ 91 4978 3322 25627
C 13 925 732 5597
C/C++ Header 81 2062 3094 5462
Bourne Shell 68 994 1271 5050
CSS 10 241 163 4946
HTML 32 618 2 3898
ASP.Net 124 449 0 2397
make 79 812 351 2381
XML 33 296 886 1632
Teamcenter def 25 224 0 1453
Bourne Again Shell 9 120 46 748
YAML 30 11 1 303
Java 4 69 106 285
sed 1 26 205 107
awk 4 20 24 82
Python 1 7 7 35
Lisp 1 4 6 25
m4 1 5 5 20
D 1 4 -1 16
Perl 1 3 1 10
--------------------------------------------------------------------------------
SUM: 1968 61555 91763 321026
--------------------------------------------------------------------------------
root@8ea8524a816b:~/riak/distdir/riak-clone#
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Result : 382609