From 31a3b846e2ae174fb68b61a9e9070e32c11509a6 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Wed, 11 Apr 2018 13:17:20 +0000 Subject: substract --- substract | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 substract (limited to 'substract') 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 + -- cgit v1.2.3