Skip to content

Instantly share code, notes, and snippets.

@fritz0705
Created March 10, 2012 06:28
Show Gist options
  • Save fritz0705/2010592 to your computer and use it in GitHub Desktop.
Save fritz0705/2010592 to your computer and use it in GitHub Desktop.
Some snippet to count lines of code
find \( -name '*.[chSs]' -or -name '*.asm' \) -exec cat {} \; | grep -vP "^[\s]*([\#]|[\/]?\*|$|\/\/)" | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment