Skip to content

Instantly share code, notes, and snippets.

@walm
Created February 28, 2011 08:23
Show Gist options
  • Save walm/847079 to your computer and use it in GitHub Desktop.
Save walm/847079 to your computer and use it in GitHub Desktop.
Count lines of code in js files
find . -name '*.js' | xargs wc -l
@rejeep
Copy link

rejeep commented Feb 28, 2011

Om du bara vill veta totalen:
find . -name '*.js' -exec cat {} ; | wc -l

@walm
Copy link
Author

walm commented Feb 28, 2011

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment