diff options
| author | Patrick Simianer <patrick@lilt.com> | 2026-02-26 10:05:59 +0000 |
|---|---|---|
| committer | Patrick Simianer <patrick@lilt.com> | 2026-02-26 10:05:59 +0000 |
| commit | b31ace79ea5f6b3f279c544cd3a443d6fbf2a24d (patch) | |
| tree | 31f2b599fa5f6996aeb134390d58deb63eefe04a /biuniq | |
| parent | 8805e95ae94d798c6441f7e1b72c90e049563f17 (diff) | |
Diffstat (limited to 'biuniq')
| -rwxr-xr-x | biuniq | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,6 +1,6 @@ #!/usr/bin/env ruby -require 'zipf' +require "zipf" f1 = ReadFile.new ARGV[0] f2 = ReadFile.new ARGV[1] @@ -16,7 +16,7 @@ while line1 = f1.gets line2 = f2.gets if line2 == nil then line2 = "" end line2.strip! - + if !d1.include? line1 and !d2.include? line2 a1 << line1 a2 << line2 @@ -33,4 +33,3 @@ a1.each_with_index { |line1,i| o1.write line1 + "\n" o2.write a2[i] + "\n" } - |
