Skip to content

Instantly share code, notes, and snippets.

@robc
Created January 8, 2009 00:08
Show Gist options
  • Save robc/44510 to your computer and use it in GitHub Desktop.
Save robc/44510 to your computer and use it in GitHub Desktop.
Quickly do a 'wc -l' on any files in the current directory (incuding it's children)
#!/usr/bin/env ruby
rb_files = Dir.glob("**/*.rb").join(" ")
system("wc -l #{rb_files}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment