Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!uflorida!novavax!hcx1!brad From: brad@SSD.CSD.HARRIS.COM (Brad Appleton) Newsgroups: comp.sources.wanted Subject: Re: Another kind of diff output Keywords: weird diff software toy Message-ID: <3335@hcx1.SSD.CSD.HARRIS.COM> Date: 19 Mar 90 19:11:31 GMT References: <24897@ut-emx.UUCP> <2467@infinet.UUCP> Sender: news@hcx1.SSD.CSD.HARRIS.COM Distribution: usa Organization: Harris Computer Systems, Fort Lauderdale, FL Lines: 29 In article <2467@infinet.UUCP> sena@infinet.UUCP (Fred Sena) writes: >I have a weird request. Does anyone have a program which can compare two >files and produce as output one of the input files with the changes added and >highlighted. Diff just shows the changes between two files, without the >similar text. > > >I want the program to compare source code versions to see what changes were >made to the code. I suppose it could also be used to compare text files. In >fact, I think that it would be useful for showing revisions of documents. > Look at "sdiff" and "diffmk" if they are on your system. sdiff will compare two files sise-by-side (2up) marking lines in one file but not the other with '<' or '>' and marking changed lines with '|' diffmk will produce a third file from the first two which contains change marks (formatted for nroff or troff) PS -- If you have access to a Silicon Graphics machine ... their "gdiff" is by far the best diff I have encountered. +=-=-=-=-=-=-=-=-= "... and miles to go before I sleep." -=-=-=-=-=-=-=-=-=-+ | Brad Appleton | Harris Computer Systems Division | | | 2101 West Cypress Creek Road | | brad@ssd.csd.harris.com | Fort Lauderdale, FL 33309 USA | | ... {uunet | novavax}!hcx1!brad | MailStop 161 (305) 973-5007 | +=-=-=-=-=-=-=-=- DISCLAIMER: I said it, not my company! -=-=-=-=-=-=-=-=-=-+