去掉文件里重复的行

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

old = File.open(ARGV[0]).collect 
new = File.open(ARGV[1],"a+") 
for i in 0..old.length-1 
new.write(old.uniq[i]) 
end