Last active
December 15, 2015 05:29
-
-
Save robertoaloi/5208830 to your computer and use it in GitHub Desktop.
Count the number of lines of an Erlang application (excluding comments, type specs, empty lines).
This file contains hidden or 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 . -type f \( -name *.erl -or -name *.hrl -or -name *.app.src \) -exec cat {} \; | sed '/^\s*$/d;/^\s*\%\%/d;/^\-spec*/d' | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment