Skip to content

Instantly share code, notes, and snippets.

@phyous
Created July 12, 2013 00:44
Show Gist options
  • Save phyous/5980529 to your computer and use it in GitHub Desktop.
Save phyous/5980529 to your computer and use it in GitHub Desktop.
Remove names from file1 contained in file2
#!/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