From 33a248464bd3ac09135e97facf2e7796bc3267ff Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Sun, 25 Jan 2015 13:35:39 +0100 Subject: div --- div | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 div diff --git a/div b/div new file mode 100755 index 0000000..93585dc --- /dev/null +++ b/div @@ -0,0 +1,8 @@ +#!/usr/bin/env ruby + +factor = ARGV[0].to_f +exit if factor==0 +while line = STDIN.gets + puts line.to_f / factor +end + -- cgit v1.2.3