Skip to content

Instantly share code, notes, and snippets.

@luizkowalski
Forked from nlively/rails_cloc.sh
Last active May 2, 2018 14:34
Show Gist options
  • Save luizkowalski/b5e1e8483284f0fa42072eec1c5ece5f to your computer and use it in GitHub Desktop.
Save luizkowalski/b5e1e8483284f0fa42072eec1c5ece5f to your computer and use it in GitHub Desktop.
Count lines of code in a rails project
#!/bin/bash
find . \( -iname '*.rb' -o -iname '*.jb' -o -iname '*.erb' -o -iname '*.rake' \) -not -path "./spec/*" -not -path "./db/*" -exec wc -l {} + | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment