From b31ace79ea5f6b3f279c544cd3a443d6fbf2a24d Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Thu, 26 Feb 2026 10:05:59 +0000 Subject: overhaul --- select | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'select') diff --git a/select b/select index 36e4256..2c5616a 100755 --- a/select +++ b/select @@ -1,11 +1,11 @@ #!/usr/bin/env ruby -require 'optimist' -require 'zipf' +require "optimist" +require "zipf" opts = Optimist::options do banner "sample --index [--shuffle] [--file ]" - opt :file, "Input file.", :type => :string, :default => '-' + opt :file, "Input file.", :type => :string, :default => "-" opt :index, "Index file.", :type => :string, :required => true end @@ -15,4 +15,3 @@ index = ReadFile.readlines_strip(opts[:index]).map{ |i| i.to_i } index.each { |i| puts input[i] } - -- cgit v1.2.3