Thanks for the suggestion!<br><br><div><span class="gmail_quote">On 6/22/06, <b class="gmail_sendername">Chad Walstrom</b> <<a href="mailto:chewie@wookimus.net">chewie@wookimus.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
"jim scott" <<a href="mailto:jimdscott@gmail.com">jimdscott@gmail.com</a>> wrote:<br>> I have two text files, an original version and a new version. What I<br>> want to do is to create a third file which is the original version
<br>> plus marked-up changes for the new version. Is this a good job for<br>> diff or is there a better application for my problem? Thanks.<br><br>This is wdiff does, almost to a "T" with what you want. It uses
<br>bracketd "+" and "-" characters to denote change.<br><br>#!/bin/sh<br># Test wdiff<br><br># set up files<br>echo foo bar > foo.1<br>echo foo foo bar > foo.2<br><br># Now test insertion<br>wdiff
foo.1 foo.2 > foo.1-2<br># You should see:<br># foo {+foo+} bar<br><br># Now test removal<br>wdiff foo.2 foo.1 > foo.2-1<br># You should see:<br># foo [-foo-] bar<br>#EOF<br><br>--<br>Chad Walstrom <<a href="mailto:chewie@wookimus.net">
chewie@wookimus.net</a>> <a href="http://www.wookimus.net/">http://www.wookimus.net/</a><br> assert(expired(knowledge)); /* core dump */<br><br><br>_______________________________________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br><a href="mailto:tclug-list@mn-linux.org">tclug-list@mn-linux.org</a><br><a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list">http://mailman.mn-linux.org/mailman/listinfo/tclug-list
</a><br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://ThreeWayNews.blogspot.com">http://ThreeWayNews.blogspot.com</a><br>Your source. For everything. Really.