home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 17043 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  2.1 KB

  1. Xref: sparky comp.lang.c:17043 comp.software-eng:4470
  2. Path: sparky!uunet!olivea!charnel!sifon!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!bloom-picayune.mit.edu!news
  3. From: scs@adam.mit.edu (Steve Summit)
  4. Newsgroups: comp.lang.c,comp.software-eng
  5. Subject: Re: Wanted: Supported equivalent of FileMerge
  6. Message-ID: <1992Nov23.170521.2675@athena.mit.edu>
  7. Date: 23 Nov 92 17:05:21 GMT
  8. References: <19921118.105028.391@almaden.ibm.com> <1992Nov19.052343.14116@netcom.com>
  9. Sender: news@athena.mit.edu (News system)
  10. Organization: none, at the moment
  11. Lines: 34
  12. Nntp-Posting-Host: adam.mit.edu
  13.  
  14. In article <1992Nov19.052343.14116@netcom.com>, mcgregor@netcom.com (Scott Mcgregor) writes:
  15. > In article <19921118.105028.391@almaden.ibm.com> dougv@vnet.ibm.com writes:
  16. >> Does anyone know of a "FileMerge" type program which allows you to visually
  17. >> merge two files into a third one with selected parts from each of the
  18. >> originals?  SUN used to distribute such a program, but it's only SunView
  19. >> (I'd like OpenLook), and it's no longer supported.
  20. > My company, Prescient Software Inc. sells such a product, Merge Ahead.
  21. > The 2.1 release is based upon Motif widgets, but runs fine under Open
  22. > Windows...
  23.  
  24. This has little to do with either of these newsgroups, but I
  25. can't resist a suggestion.  If there is anyone out there running
  26. neither Motif nor Open Windows, or who does not have money to
  27. spend on tools like this, or who simply prefers using existing
  28. tools to get the job done when reasonably possible, and who is
  29. running something like Unix, just do
  30.  
  31.     diff -DBLORT oldfile file > newfile
  32.  
  33. The output will be a merge of the two input files, with
  34. differences indicated by easily-located lines of the form
  35. "#ifdef BLORT" [note 1].  Use your favorite text editor to locate
  36. these differences and select which alternatives should appear in
  37. the final output.
  38.  
  39. (Of course, if you find this technique cumbersome, you are more
  40. than welcome to pursue more "elegant," special-purpose solutions.)
  41.  
  42.                     Steve Summit
  43.                     scs@adam.mit.edu
  44.  
  45. Note 1. Early versions of diff, however, did not support the -D
  46. option.
  47.