summaryrefslogtreecommitdiff
path: root/select-from
diff options
context:
space:
mode:
authorPatrick Simianer <patrick@lilt.com>2026-02-26 10:05:59 +0000
committerPatrick Simianer <patrick@lilt.com>2026-02-26 10:05:59 +0000
commitb31ace79ea5f6b3f279c544cd3a443d6fbf2a24d (patch)
tree31f2b599fa5f6996aeb134390d58deb63eefe04a /select-from
parent8805e95ae94d798c6441f7e1b72c90e049563f17 (diff)
overhaulHEADmaster
Diffstat (limited to 'select-from')
-rwxr-xr-xselect-from11
1 files changed, 5 insertions, 6 deletions
diff --git a/select-from b/select-from
index 0ccfeac..e9a394d 100755
--- a/select-from
+++ b/select-from
@@ -1,13 +1,13 @@
#!/usr/bin/env ruby
-require 'optimist'
-require 'zipf'
+require "optimist"
+require "zipf"
opts = Optimist::options do
banner "select_from [--invert] -i <file> < <line separated data>"
- opt :index, "Line numbers to output.", :type => :string, :short => '-i', :required => true
- opt :invert, "Invert selection.", :type => :bool, :short => '-j', :default => false
- opt :from1, "Index starting from 1.", :type => :bool, :short => '-k', :default => false
+ opt :index, "Line numbers to output.", :type => :string, :short => "-i", :required => true
+ opt :invert, "Invert selection.", :type => :bool, :short => "-j", :default => false
+ opt :from1, "Index starting from 1.", :type => :bool, :short => "-k", :default => false
end
accept = {}
@@ -30,4 +30,3 @@ while line = STDIN.gets
end
i += 1
end
-