Skip to content

Instantly share code, notes, and snippets.

@gjcourt
Created April 2, 2014 19:19
Show Gist options
  • Save gjcourt/9941149 to your computer and use it in GitHub Desktop.
Save gjcourt/9941149 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo "Lines of code" $(
find enki -name \*.html -o -name \*.css -o -name \*.js -o -name \*.coffee -o -name \*.py \
| grep -vE "/migrations/" \
| grep -vE "enki/static/admin" \
| grep -vE "enki/static/CACHE" \
| grep -vE "enki/static/css/lib" \
| grep -vE "enki/static/css/mobile" \
| grep -vE "enki/static/js/lib" \
| grep -vE "enki/static/js/widgets" \
| grep -vE "enki/static/js/uni_form" \
| grep -vE "enki/static/uni_form" \
| xargs cat \
| grep -v "^\s*$" \
| wc -l \
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment