diff options
author | Patrick Simianer <pks@pks.rocks> | 2018-04-11 13:17:20 +0000 |
---|---|---|
committer | Patrick Simianer <pks@pks.rocks> | 2018-04-11 13:17:20 +0000 |
commit | 31a3b846e2ae174fb68b61a9e9070e32c11509a6 (patch) | |
tree | ad647774f2e752e3ce3fc82706f4006df7aec3b9 /substract | |
parent | c4bf03972a71cd3507aa8ef9c3a0ca37a01ace77 (diff) |
substract
Diffstat (limited to 'substract')
-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 + |