Skip to content

Instantly share code, notes, and snippets.

@qinshulei
Last active August 29, 2015 14:07
Show Gist options
  • Save qinshulei/7945749fb2f830e85d87 to your computer and use it in GitHub Desktop.
Save qinshulei/7945749fb2f830e85d87 to your computer and use it in GitHub Desktop.
caculate the total source code line numbers
#!/bin/bash
wc -l `find ../src/main -regex ".*\.\(java\|html\|js\|css\)" -not -path "../src/main/webapp/assets/bower_components/*" -not -path "../src/main/webapp/assets/components/*"`
wc -l $(find . -type f -regex ".*\.*\.*" -not -path "./.git/*")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment