Skip to content

Instantly share code, notes, and snippets.

@BohdanOrlov
Created November 5, 2018 17:58
Show Gist options
  • Save BohdanOrlov/c10df3b089ce44f99f48a4c6b576ed23 to your computer and use it in GitHub Desktop.
Save BohdanOrlov/c10df3b089ce44f99f48a4c6b576ed23 to your computer and use it in GitHub Desktop.
Total lines of code
find . \( -iname Pods -prune \) -o \( -iname \*.m -o -iname \*.mm -o -iname \*.h -o -iname \*.swift \) -print | sed -e 's/"/"\\""/g' -e 's/.*/"&"/' | xargs wc -l | awk '/total/{k+=$1}END{print k,"total"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment