[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] diff being boneheaded
- Subject: [ale] diff being boneheaded
- From: warlord at MIT.EDU (Derek Atkins)
- Date: Thu, 08 Aug 2013 10:48:38 -0400
- In-reply-to: <CAEo=5Pw-yOXxkJn4_wQ-UJ8mHWzuNKkTYbG99egW6o7XPHhZxA@mail.gmail.com> (Jim Kinney's message of "Wed, 7 Aug 2013 12:37:48 -0400")
- References: <CAEo=5Pw-yOXxkJn4_wQ-UJ8mHWzuNKkTYbG99egW6o7XPHhZxA@mail.gmail.com>
Jim Kinney <jim.kinney at gmail.com> writes:
> I've got 2 text files? > 6M lines each. Each file is sorted in dictionary
> order. diff is flagging identical lines between them as different but not all
> lines.
>
> I look at the output and can see no reason why they are flagged except for
> maybe one line is too far away from the same line in the other file.
>
> There is some crap from a mac backup list that was in a different codepage but
> I think I've fixed that.
>
> Ideas on how to tell diff to ignore the line count between lines? Basically
> all I want is a fast "these lines are not in the other file" for both files.
Try "diff -b" so that it ignores whitespace differences? For example,
if there is a trailing space at the end of the line diff will consider
it, well, different.
-derek
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
warlord at MIT.EDU PGP key available