diff options
-rwxr-xr-x | substract | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/substract b/substract new file mode 100755 index 0000000..212b6da --- /dev/null +++ b/substract @@ -0,0 +1,13 @@ +#!/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 + |