diff options
| author | Patrick Simianer <patrick@lilt.com> | 2026-02-26 10:05:59 +0000 |
|---|---|---|
| committer | Patrick Simianer <patrick@lilt.com> | 2026-02-26 10:05:59 +0000 |
| commit | b31ace79ea5f6b3f279c544cd3a443d6fbf2a24d (patch) | |
| tree | 31f2b599fa5f6996aeb134390d58deb63eefe04a /subtract | |
| parent | 8805e95ae94d798c6441f7e1b72c90e049563f17 (diff) | |
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 |
