diff options
author | Patrick Simianer <p@simianer.de> | 2014-10-09 20:47:23 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2014-10-09 20:47:23 +0100 |
commit | e0b634754d1bef33dc8e72509c6990cccc32745a (patch) | |
tree | 95d77abef518a333830881dbbd661f14f94868c3 /splitpipes | |
parent | 254c27ed4af938f0b9c4a21cb99b75f8cc1cd1b2 (diff) |
alles neu macht der mai
Diffstat (limited to 'splitpipes')
-rwxr-xr-x | splitpipes | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/splitpipes b/splitpipes deleted file mode 100755 index 35ee176..0000000 --- a/splitpipes +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env ruby - -require 'trollop' - -STDIN.set_encoding 'utf-8' -STDOUT.set_encoding 'utf-8' - - -cfg = Trollop::options do - banner "splitpipes -f <n> < <input>" - opt :field, "field", :type => :int -end - -while line = STDIN.gets - j = 1 - line.strip.split(' ||| ').each { |i| - if j == cfg[:field] - puts i.strip - break - end - j += 1 - } -end - |