Skip to content

Instantly share code, notes, and snippets.

@francisoud
Created April 29, 2010 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save francisoud/383366 to your computer and use it in GitHub Desktop.
Save francisoud/383366 to your computer and use it in GitHub Desktop.
require 'fileutils'
File.open("result.csv", File::CREAT|File::RDWR) do |csv_file|
Dir["JSPs/**/*.jsp"].each do |file|
lines = File.readlines(file)
csv_file << "#{file}\t#{lines.length}\n"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment