Is there an easy way available in Ruby to compare two text files and
report the differences?
thanks
jack
···
--
Posted via http://www.ruby-forum.com/.
Is there an easy way available in Ruby to compare two text files and
report the differences?
thanks
jack
--
Posted via http://www.ruby-forum.com/.
jackster the jackle wrote:
Is there an easy way available in Ruby to compare two text files and
report the differences?
http://raa.ruby-lang.org/project/diff-lcs/
a
%x(diff file1 file2) # Unix/Linux
Josef 'Jupp' Schugt
On Thu, 16 Oct 2008 01:04:31 +0200, jackster the jackle <johnsheahan@sflistdb.com> wrote:
Is there an easy way available in Ruby to compare two text files and
report the differences?
--
Blog: http://penpen.goodaddress.eu/
PGP key (id 6CC6574F): http://wwwkeys.de.pgp.net/
Jabber - http://www.jabber.org/ - contact information on request
he said "easy"
On Oct 15, 2008, at 16:44 , Alex Fenton wrote:
jackster the jackle wrote:
Is there an easy way available in Ruby to compare two text files and
report the differences?
Josef 'Jupp' Schugt wrote:
On Thu, 16 Oct 2008 01:04:31 +0200, jackster the jackle > <johnsheahan@sflistdb.com> wrote:
Is there an easy way available in Ruby to compare two text files and
report the differences?%x(diff file1 file2) # Unix/Linux
Josef 'Jupp' Schugt
now that's what I call "easy" ![]()
--
Posted via http://www.ruby-forum.com/\.
You can expand on this approach if you're outputting to an html view
too:
http://markmcb.com/2008/11/04/ruby-on-rails-diff-text-to-html-ins-and-del/
--
Posted via http://www.ruby-forum.com/.
how about visual diff like the image
http://tiny.cc/fnbiz
--
Posted via http://www.ruby-forum.com/.
I found a good module for this a long time ago. I keep it on my github, hoping some day to discover where it actually came from.
On 2008-11-05 01:16:43 -0500, Mark Mcbride <mark@markmcb.com> said:
You can expand on this approach if you're outputting to an html view
too:
http://markmcb.com/2008/11/04/ruby-on-rails-diff-text-to-html-ins-and-del/