diff options
Diffstat (limited to 'subtract')
| -rwxr-xr-x | subtract | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/subtract b/subtract new file mode 100755 index 0000000..ecd6c11 --- /dev/null +++ b/subtract @@ -0,0 +1,12 @@ +#!/usr/bin/env ruby + +require "zipf" + +f = ReadFile.new ARGV[0] +g = ReadFile.new ARGV[1] + +while line1 = f.gets + line2 = g.gets + d = line1.to_f - line2.to_f + puts d +end |
