Looking for Text files comparing and merging utility

Looking for Text files comparing and merging utility

Post by Nir Bar » Sat, 22 Jul 1995 04:00:00



I'm looking into a tool that can merge two text files,
the old revision and the new revision of the files into one file.

These files are usually user specific configuration files
that must be upgraded when a new set of software is installed.

I found myself wasting a lot of time manually comparing and
merging the files and am looking into some user friendly utility
written in C, shell, perl, tcl or any other standard language that
can help me doing this job.

Thanks for any input,

Nir Baroz
--------
Nir Baroz                        Encore Computer Corporation

                                 Tel: 1-305-587-2900 Fax: 1-305-797-5807
--
Nir Baroz                        Encore Computer Corporation

                                 Tel: 1-305-587-2900 Fax: 1-305-797-5807

 
 
 

Looking for Text files comparing and merging utility

Post by Beirne Konars » Sat, 22 Jul 1995 04:00:00


: I'm looking into a tool that can merge two text files,
: the old revision and the new revision of the files into one file.

: These files are usually user specific configuration files
: that must be upgraded when a new set of software is installed.

: I found myself wasting a lot of time manually comparing and
: merging the files and am looking into some user friendly utility
: written in C, shell, perl, tcl or any other standard language that
: can help me doing this job.

I depends on how you want to merge the files.  You can always do

cat file1 file2 >file3

Assuming you want a more intelligent merge, Perl is probably good for it, but
it depends on the nature of the files.

Beirne

--
Beirne Konarski         | Unicycling Web Page:

Kent State University   |
"Untouched by Scandal"        |

 
 
 

Looking for Text files comparing and merging utility

Post by Ray A. Jon » Tue, 25 Jul 1995 04:00:00


: I'm looking into a tool that can merge two text files,
: the old revision and the new revision of the files into one file.

: These files are usually user specific configuration files
: that must be upgraded when a new set of software is installed.

: I found myself wasting a lot of time manually comparing and
: merging the files and am looking into some user friendly utility
: written in C, shell, perl, tcl or any other standard language that
: can help me doing this job.

This is what "diff" is for
diff oldfile newfile
will show you any changes made between the two files.  When you do this, it
will show which files contain the difference (< indicates oldfile in my
example and > indicates newfile) and some funny codes between the lines.
Those are "sed" instructions to merge or change one file to the other.  See
both "sed" and "diff" in the man pages.
--

URL: http://www.celestial.com         One Mercer Plaza, Suite S100
Manufacturer of Internet Gateways     Mercer Island, WA 98040; (206) 236-1676
The probability of one or more spelling errors in this missive approaches
unity.  If this bothers you, run it through your spell checker!

 
 
 

1. Utility to compare 2 text files?

Hello,
   I know this is boneheaded but I remember reading about a Linux utility
that would compare two text files and return if they were the same or not.
I'm combing some books here and can't remember where I read about this.
   Does anybody know the name of this utility?
   Thanks very much.

--
Nick Ketter
Sr. Engineer
Crosstown Audio, Inc.
Atlanta, GA.
Sound for Picture in Atlanta?

2. Linksys/tulip: "Device or resource busy"

3. is there a utility to compare two non-text files?

4. informix??

5. Looking for DOS utility to convert text files to unix.

6. Modem trouble with Pentium 75 Mhz board

7. Looking for a Utility to Merge Users

8. Veritas Question - Adding new disk

9. Looking for visual merge utility.

10. Looking for a good program source compare utility

11. Comparing and merging files

12. File creation date compare utility

13. File modification date/time compare utility