blob: 4b4432d5cf5fea8c935075f7eb0441ffd7fabdf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env ruby
require 'zipf'
a = ReadFile.new ARGV[0]
b = ReadFile.new ARGV[1]
while linea = a.gets
lineb = b.gets
puts linea.strip.split.size.to_f / lineb.strip.split.size.to_f
end
|