summaryrefslogtreecommitdiff
path: root/merge_ttable
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-07-05 11:01:46 +0200
committerPatrick Simianer <p@simianer.de>2016-07-05 11:01:46 +0200
commit2b1d7f881c19c4d4b5afae194e02d3300c7675d0 (patch)
tree5a06ee7de98640a39244b57bb369697176b44ebf /merge_ttable
parent69949dda35c3ea21d8e926e5f0a596a0a0f61c6a (diff)
mv
Diffstat (limited to 'merge_ttable')
-rwxr-xr-xmerge_ttable34
1 files changed, 0 insertions, 34 deletions
diff --git a/merge_ttable b/merge_ttable
deleted file mode 100755
index ac10903..0000000
--- a/merge_ttable
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'zipf'
-require 'trollop'
-
-def main
- conf = Trollop::options do
- opt :f, "f files", :type => :string, :required => true
- opt :e, "e files", :type => :string, :required => true
- end
-
- f_files = conf[:f].split
- e_files = conf[:e].split
-
- h = {}
- f_files.each_with_index { |fn,i|
- fa = ReadFile.readlines_strip fn
- ea = ReadFile.readlines_strip e_files[i]
- fa.each_with_index { |fw,j|
- if h.has_key? fw
- h[fw] << ea[j]
- else
- h[fw] = [ea[j]]
- end
- }
- }
-
- h.each_pair { |f,ea|
- puts "#{f}\t#{ea.first}"
- }
-end
-
-main
-