Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file1 = File.open('file1.txt').to_a
- file2 = File.open('file2.txt').to_a
- new_words = []
- file1.map! do |line|
- line.strip!
- end
- file2.each do |line|
- login = line.split(';')[0].strip
- if file1.index(login.md5).nil? then
- new_words << line
- end
- end
- f = File.open('file3.txt', 'a')
- f.write new_words.join.strip
- f.close
Add Comment
Please, Sign In to add comment