Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 054a6d822d
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (9 sloc) 0.368 kb
puts "Enter the two files you wish to compare (separated by a comma)"
files = gets
old = File.readlines files.split(",")[0].strip
new = File.readlines files.split(",")[1].strip
added = (new - old).join("")
removed = (old - new).join("")
puts "Simple Diff of '#{files[0]}' and '#{files[1]}'"
puts "\nremoved files:\n\n#{removed}"
puts "\nadded files:\n\n#{added}"
Jump to Line
Something went wrong with that request. Please try again.