[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sdiff Enhancement Guidance?
From: |
Grant Stevens |
Subject: |
sdiff Enhancement Guidance? |
Date: |
Fri, 1 Jun 2007 05:15:56 -0700 (PDT) |
Hello!
A project I worked recently required me to build an enhancement to sdiff. I'd
like to contribute the enhancement to GNU diffutils. Can someone guide me
through the process?
Details:
Suppose we sdiff these two files:
$ cat file1
line1
close but not exact
another not exact
last line
$ cat file2
line1
line2
close but inexact
line3
line4
another inexact
last line
$ diff -W 43 -y file1 file2
line1 line1
close but not exact | line2
another not exact | close but inexact
> line3
> line4
> another inexact
last line last line
But I needed a tighter line-matching that would detect
similar-but-not-identical lines and associate them. The
resulting output looks like this:
$ diff -W 43 -Y file1 file2 # (-Y = -y option, enhanced for tighter matching)
line1 line1
> line2
close but not exact | close but inexact
> line3
> line4
another not exact | another inexact
last line last line
Notice that the similar lines are shown together.
---------------------------------
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- sdiff Enhancement Guidance?,
Grant Stevens <=