Skip to content

Instantly share code, notes, and snippets.

@zigzag
Created January 4, 2010 11:35
Show Gist options
  • Save zigzag/268472 to your computer and use it in GitHub Desktop.
Save zigzag/268472 to your computer and use it in GitHub Desktop.
find . -type f |grep "\.txt$" | xargs cat | wc -l
ruby -e 'p Dir.glob("./**/*.txt").reduce(0){|sum,f| sum += File.readlines(f).size}'
543
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment