Created
February 1, 2015 16:36
-
-
Save masolino/72d4c447e88c49d2d372 to your computer and use it in GitHub Desktop.
Diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
f1 = IO.readlines("file1.txt").map(&:chomp) | |
f2 = IO.readlines("file2.txt").map(&:chomp) | |
File.open("diff.txt","w+"){ |f| f.write((f2-f1).join("\n")) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment