summaryrefslogtreecommitdiff
path: root/filter-illegal
diff options
context:
space:
mode:
Diffstat (limited to 'filter-illegal')
-rwxr-xr-xfilter-illegal25
1 files changed, 25 insertions, 0 deletions
diff --git a/filter-illegal b/filter-illegal
new file mode 100755
index 0000000..8b29f3e
--- /dev/null
+++ b/filter-illegal
@@ -0,0 +1,25 @@
+#!/usr/bin/env ruby
+
+require 'zipf'
+
+illegal = [ "[", "]", "|||" ]
+
+in0 = File.new ARGV[0]
+in1 = File.new ARGV[1]
+
+i = 0
+skipi = []
+while line0 = in0.gets
+ line1 = in1.gets
+ skip = false
+ illegal.each { |k|
+ if line0.index(k) or line1.index(k) then
+ skip = true
+ skipi << i
+ end
+ }
+ i += 1
+end
+
+skipi.each { |j| puts j }
+