From 68acbb9a0c7967cb90a7e3756fc94fdd8a73d154 Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Wed, 29 Jan 2014 19:14:08 +0100 Subject: make use of nlp_ruby, LICENSE --- mult | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mult') diff --git a/mult b/mult index eaead89..2ef0149 100755 --- a/mult +++ b/mult @@ -1,4 +1,8 @@ #!/usr/bin/env ruby -puts STDIN.gets.to_f * ARGV[0].to_f + +factor = ARGV[0].to_f +while line = STDIN.gets + puts line.to_f * factor +end -- cgit v1.2.3