summaryrefslogtreecommitdiff
path: root/split-lines
blob: 14b3a0f1ef05b7bbc1338cdf12beb846a5db8815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env ruby

require 'zipf'

dir = ARGV[0]
i = 0
while line = STDIN.gets
  src, tgt = line.split " ||| "
  f = WriteFile.new "#{dir}/#{i}.src" 
  f.write line
  f.close
  i += 1
end