Skip to content

Instantly share code, notes, and snippets.

@MnO2
Created May 4, 2011 08:17
Show Gist options
  • Save MnO2/954918 to your computer and use it in GitHub Desktop.
Save MnO2/954918 to your computer and use it in GitHub Desktop.
How many lines in your C project?
#1
shopt -s globstar && wc -l **/*.[ch]
#2
find -name *.\[c\|h\] | xargs wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment