Create a gist now

Instantly share code, notes, and snippets.

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