Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Count the number of lines of an Erlang application (excluding comments, type specs, empty lines).
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