Diff for 2 Text Files

Discussion in 'Ruby' started by jackster the jackle, Oct 16, 2008.

  1. 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, Oct 16, 2008
    #1
    1. Advertising

  2. jackster the jackle

    Alex Fenton Guest

    Alex Fenton, Oct 16, 2008
    #2
    1. Advertising

  3. jackster the jackle

    Ryan Davis Guest

    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?

    >
    > http://raa.ruby-lang.org/project/diff-lcs/


    he said "easy"
     
    Ryan Davis, Oct 16, 2008
    #3
  4. jackster the jackle, Oct 16, 2008
    #4
  5. Josef 'Jupp' Schugt, Oct 16, 2008
    #5
  6. Josef 'Jupp' Schugt wrote:
    > On Thu, 16 Oct 2008 01:04:31 +0200, jackster the jackle
    > <> 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/.
     
    jackster the jackle, Oct 16, 2008
    #6
  7. jackster the jackle

    Mark Mcbride Guest

    Mark Mcbride, Nov 5, 2008
    #7
  8. jackster the jackle

    Ziyad Saeed Guest

    Ziyad Saeed, May 31, 2009
    #8
  9. jackster the jackle

    Nathan Guest

    Nathan, Aug 19, 2009
    #9
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Cyril Vi?ville

    diff Process under diff users

    Cyril Vi?ville, Jun 29, 2004, in forum: Perl
    Replies:
    1
    Views:
    529
    Joe Smith
    Jun 29, 2004
  2. Berrucho
    Replies:
    2
    Views:
    679
    Infant Newbie
    Dec 5, 2003
  3. A Traveler

    Diff CSS styles for diff INPUT TYPE='s?

    A Traveler, Aug 31, 2004, in forum: ASP .Net
    Replies:
    6
    Views:
    4,975
    Steve Fulton
    Aug 31, 2004
  4. edw
    Replies:
    2
    Views:
    9,587
  5. Austin Ziegler

    [ANN] Diff::LCS 1.1.0, Diff::LCS 1.0.4

    Austin Ziegler, Aug 8, 2004, in forum: Ruby
    Replies:
    3
    Views:
    212
    Austin Ziegler
    Aug 9, 2004
Loading...

Share This Page