Thanks for the suggestion!

On 6/22/06, Chad Walstrom <chewie at wookimus.net> wrote:
>
> "jim scott" <jimdscott at gmail.com>  wrote:
> > I have two text files, an original version and a new version. What I
> > want to do is to create a third file which is the original version
> > plus marked-up changes for the new version. Is this a good job for
> > diff or is there a better application for my problem? Thanks.
>
> This is wdiff does, almost to a "T" with what you want.  It uses
> bracketd "+" and "-" characters to denote change.
>
> #!/bin/sh
> # Test wdiff
>
> # set up files
> echo foo bar > foo.1
> echo foo foo bar > foo.2
>
> # Now test insertion
> wdiff foo.1 foo.2 > foo.1-2
> # You should see:
> # foo {+foo+} bar
>
> # Now test removal
> wdiff foo.2 foo.1 > foo.2-1
> # You should see:
> # foo [-foo-] bar
> #EOF
>
> --
> Chad Walstrom <chewie at wookimus.net>           http://www.wookimus.net/
>            assert(expired(knowledge)); /* core dump */
>
>
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list
>



-- 
http://ThreeWayNews.blogspot.com
Your source. For everything. Really.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20060622/5b832a49/attachment.htm