Skip to content

Instantly share code, notes, and snippets.

@danielchasehooper
Created October 23, 2014 21:10
Show Gist options
  • Save danielchasehooper/4b7828b24eae3f5d0288 to your computer and use it in GitHub Desktop.
Save danielchasehooper/4b7828b24eae3f5d0288 to your computer and use it in GitHub Desktop.
Count the lines of code in the current directory
#!/bin/sh
find . \( -iname "*.[chm]" -o -iname "*.swift" -o -iname "*.cpp" -o -iname "*.mm" \) -print0 | xargs -0 cat | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment