分享至
朋友圈
微信
qq空间
qq
微博
复制
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