Skip to content

Instantly share code, notes, and snippets.

@bradfordw
Forked from robertoaloi/hardwork.sh
Last active November 4, 2015 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradfordw/5eb98d350ad40727dcdd to your computer and use it in GitHub Desktop.
Save bradfordw/5eb98d350ad40727dcdd to your computer and use it in GitHub Desktop.
Count the number of lines of an Erlang application (excluding comments, type specs, empty lines).
# for osx users
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