Created
January 8, 2009 00:08
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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