Created
July 12, 2013 00:44
-
-
Save phyous/5980529 to your computer and use it in GitHub Desktop.
Remove names from file1 contained in file2
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 | |
# remove names from file1 contained in file2 | |
unique_entries = File.readlines(ARGV[0]) - File.readlines(ARGV[1]) | |
unique_entries.each{|l| puts l} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment