Skip to content

Instantly share code, notes, and snippets.

@lin
Created November 3, 2015 19:30
Show Gist options
  • Save lin/a013ce42d0442a119f0a to your computer and use it in GitHub Desktop.
Save lin/a013ce42d0442a119f0a to your computer and use it in GitHub Desktop.
# rails
find . \( -iname '*.rb' -o -iname '*.css' -o -iname '*.js' -o -iname '*.erb' -o -iname '*.html' -o -iname '*.haml' -o -iname '*.sass' -o -iname '*.scss' -o -iname '*.coffee' \) -exec wc -l {} + | sort -n
# ios
find . "(" -name "*.m" -or -name "*.mm" -or -name "*.cpp" -or -name "*.swift" ")" -print0 | xargs -0 wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment