Searching \ for '[EE] Windows file compare utility?' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=windows+file+compare
Search entire site for: 'Windows file compare utility?'.

Exact match. Not showing close matches.
PICList Thread
'[EE] Windows file compare utility?'
2006\12\18@101544 by Mike Hord

picon face
Does anyone know a good free file compare utility for ASCII files?

The feature that I really need is a specifiable comment character-
i.e., "lines that start with ' should be excluded from comparison
until a new line is reached".  I'm recommenting and refactoring
old code, and I need a way to see what's changed in type 1
between versions A and B so that I can upgrade types 2 and 3
from their current version to their next version.

What a pain.

Mike H.

2006\12\18@103348 by Tamas Rudnai

face picon face
kdiff3 is quite a good one

http://kdiff3.sourceforge.net/

You can put a preprocessor which runs before diffing, so with a grep command
you can filter out comments...

(also exists on linux)

Tamas


On 12/18/06, Mike Hord <spam_OUTmike.hordTakeThisOuTspamgmail.com> wrote:
{Quote hidden}

> -

2006\12\18@104644 by William Couture

face picon face
On 12/18/06, Mike Hord <.....mike.hordKILLspamspam@spam@gmail.com> wrote:
> Does anyone know a good free file compare utility for ASCII files?
>
> The feature that I really need is a specifiable comment character-
> i.e., "lines that start with ' should be excluded from comparison
> until a new line is reached".  I'm recommenting and refactoring
> old code, and I need a way to see what's changed in type 1
> between versions A and B so that I can upgrade types 2 and 3
> from their current version to their next version.
>
> What a pain.

I've been using "Beyond Compare" for source code comparisons.

http://www.scootersoftware.com/

Don't know if can be told that "lines that start with ' should be excluded",
but it does know how to ignore C comments.

Bill

--
Psst...  Hey, you... Buddy...  Want a kitten?  straycatblues.petfinder.org

2006\12\18@104925 by Christopher Cole

flavicon
face
On Mon, Dec 18, 2006 at 09:15:40AM -0600, Mike Hord wrote:
> Does anyone know a good free file compare utility for ASCII files?

Diff.  http://en.wikipedia.org/wiki/Diff

> The feature that I really need is a specifiable comment character-
> i.e., "lines that start with ' should be excluded from comparison
> until a new line is reached".

Grep.  http://en.wikipedia.org/wiki/Grep

Both tools available in any reputable Linux distribution.  On Windows, use
cygwin.  Also check out http://unxutils.sourceforge.net/

Take care,
-Chris

--
| Christopher Cole, Cole Design and Development               colespamKILLspamcoledd.com |
| Embedded Electronics and Software Design                  http://coledd.com |

2006\12\18@111555 by Dave Tweed

face
flavicon
face
Mike Hord <.....mike.hordKILLspamspam.....gmail.com> wrote:
> Does anyone know a good free file compare utility for ASCII files?
>
> The feature that I really need is a specifiable comment character-
> i.e., "lines that start with ' should be excluded from comparison
> until a new line is reached".  I'm recommenting and refactoring
> old code, and I need a way to see what's changed in type 1
> between versions A and B so that I can upgrade types 2 and 3
> from their current version to their next version.

Well, it isn't Windows-specific, but "diff -I <pattern>" should
be pretty close to what you want. It's available in any Unix-ish
environment, including Cygwin on Windows.

-- Dave Tweed

2006\12\18@125514 by Tachyon

picon face
Thought about installing Cygwin and using diff?

Mike Hord wrote:
> Does anyone know a good free file compare utility for ASCII files?
>
> The feature that I really need is a specifiable comment character-
> i.e., "lines that start with ' should be excluded from comparison
> until a new line is reached".  I'm recommenting and refactoring
> old code, and I need a way to see what's changed in type 1
> between versions A and B so that I can upgrade types 2 and 3
> from their current version to their next version.
>
> What a pain.
>
> Mike H.
>  

2006\12\18@130316 by Alex Harford

face picon face
I second the vote for kdiff3, if you are looking for a GUI solution.

On 12/18/06, Tamas Rudnai <EraseMEtamas.rudnaispam_OUTspamTakeThisOuTgmail.com> wrote:
> kdiff3 is quite a good one
>
> http://kdiff3.sourceforge.net/

2006\12\18@130433 by Michael Dipperstein

face
flavicon
face
If you don't want the Cygwin baggage, diff is also part of unxutils.
You can get it from http://unxutils.sourceforge.net/

-Mike

> From: piclist-bouncesspamspam_OUTmit.edu [@spam@piclist-bouncesKILLspamspammit.edu] On
Behalf
{Quote hidden}

> -

2006\12\18@130747 by John Pfaff

picon face
Beyond Compare is a good tool, but not free.  It's like $20, but does
all of the things you want.  There is a 30 day free trial available.

http://www.scootersoftware.com/

JP

Christopher Cole wrote:
{Quote hidden}

2006\12\18@141829 by Mike Hord

picon face
On 12/18/06, John Pfaff <KILLspamjpfaff1528KILLspamspamverizon.net> wrote:
> Beyond Compare is a good tool, but not free.  It's like $20, but does
> all of the things you want.  There is a 30 day free trial available.
>
> http://www.scootersoftware.com/

Thanks, everyone- I'm looking at kdiff now, and I'll check out some of
the others later.

Mike H.

2006\12\19@083757 by olin piclist

face picon face
Mike Hord wrote:
> Does anyone know a good free file compare utility for ASCII files?
>
> The feature that I really need is a specifiable comment character-
> i.e., "lines that start with ' should be excluded from comparison
> until a new line is reached".  I'm recommenting and refactoring
> old code,

So why do you want to exclude comments?  They are a important part of code,
and changes in comments are just as important as changes in the executable
code.

If you just want to get everything into consistent formatting before the
compare, my COPYA program converts hard tabs (a bad idea anyway) to spaces
with arbitrary tab stops.  My ALIGN_COMMENTS program lines up comments in a
particular column, and can understand various line end end of line comment
types.  If this is MPASM code, my ASPIC_FIX program aligns everything,
including comments, into fixed columns and also removes hard spaces in a
single pass.


********************************************************************
Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products
(978) 742-9014.  Gold level PIC consultants since 2000.

2006\12\19@093701 by Mike Hord
picon face
> So why do you want to exclude comments?  They are a important part of code,
> and changes in comments are just as important as changes in the executable
> code.

If you saw this code, you'd know why.  I'll rant for a moment, because
I (think I)
have a sympathetic audience.

1.  No compiler/simulator: this code is in plaintext, which is uploaded through
a terminal program to the motion controller that it drives.  No error reporting,
no syntax check, nothing.  At best, a four digit error code with no line ref or
context.  By ignoring the comments, it makes it easier for me to pick out the
actual code and spot errors.
2.  Fully 15% of the code is commented code, removed by previous developers
from previous versions.  I don't want to see that.
3.  Frequently, when I'm going through the code adding a feature, I'll tidy up
the comments.  Most of them are pointless (i.e., "increment Y by 6", "sets
Io 23 to 1", etc) or flat wrong, referring to functionality that's
gone or altered
so significantly it no longer resembles the described behavior.  I don't want
to be told a line of code has changed just because I've deleted and re-written
the entire comment for that line, and added two or three lines of comments
to boot.

Maintaining this code is an absolute nightmare.  We have three types of
code, for three different machine configuration scenarios, and all three types
have to be manually altered separately to add new features or fix new bugs.

I've gone through the most common one and cleaned it up, adding
comments and removing dead or commented code, but the fact is we're
at 8100 bytes of 8150 (yes, 8150.  NOT 8192.), so we may be reaching
the end of the road for this thing.

Sorry.  Rant off.

Mike H.

2006\12\19@180712 by Xiaofan Chen

face picon face
On 12/18/06, Mike Hord <RemoveMEmike.hordTakeThisOuTspamgmail.com> wrote:
> Does anyone know a good free file compare utility for ASCII files?
>
> The feature that I really need is a specifiable comment character-
> i.e., "lines that start with ' should be excluded from comparison
> until a new line is reached".  I'm recommenting and refactoring
> old code, and I need a way to see what's changed in type 1
> between versions A and B so that I can upgrade types 2 and 3
> from their current version to their next version.
>
> What a pain.

Winmerge (GPL, http://winmerge.org/ ) might be a good one.

2006\12\19@183953 by Mark Rages

face picon face
On 12/19/06, Xiaofan Chen <spamBeGonexiaofancspamBeGonespamgmail.com> wrote:
> On 12/18/06, Mike Hord <TakeThisOuTmike.hordEraseMEspamspam_OUTgmail.com> wrote:
> > Does anyone know a good free file compare utility for ASCII files?
> >
> > The feature that I really need is a specifiable comment character-
> > i.e., "lines that start with ' should be excluded from comparison
> > until a new line is reached".  I'm recommenting and refactoring
> > old code, and I need a way to see what's changed in type 1
> > between versions A and B so that I can upgrade types 2 and 3
> > from their current version to their next version.
> >
> > What a pain.
>
> Winmerge (GPL, http://winmerge.org/ ) might be a good one.

Also, a good version control system is very helpful for this task.  I
recommend Subversion with ViewVC (both Free). With ViewVC you can
browse the code in a web browser, with side-by-side, color-coded
diffs.

If you can describe the syntax of the file, you may be able to adapt a
tool like LXR: http://lxr.linux.no/

I find these web-based code broswers very convenient to use.  When
writing notes about what you are doing, you can insert URLs to the
relevant code section.  (I write my notes on an internal wiki, but
even MS-Word lets you insert hyperlinks.)  Also, the code can be
accessed from any computer in the organization, which may or may not
be helpful to you.

Regards,
Mark
markrages@gmail
--
You think that it is a secret, but it never has been one.
 - fortune cookie

2006\12\19@185141 by Mike Singer

picon face
Mike Hord wrote:
> Does anyone know a good free file compare utility
> for ASCII files?
> The feature that I really need is a specifiable
> comment character- i.e., "lines that start with ' should
> be excluded from comparison until a new line is reached".

You may export the files in MS Excel, then just loop through rows in
VBA to find differences between lines. Lines to delete you could color
in red; lines that differ, you could color in yellow.

MS

More... (looser matching)
- Last day of these posts
- In 2006 , 2007 only
- Today
- New search...