Skip to content

Instantly share code, notes, and snippets.

@robertoaloi
Last active December 15, 2015 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save robertoaloi/5208830 to your computer and use it in GitHub Desktop.
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).
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