*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> merge (1)              
Title
Content
Arch
Section
 

merge(1)

Contents


NAME    [Toc]    [Back]

       merge - three-way file merge

SYNOPSIS    [Toc]    [Back]

       merge [-Llabel1 [-Llabel3]] [-p] [-q] file1 file2 file3

DESCRIPTION    [Toc]    [Back]

       merge  incorporates  all  changes  that lead from file2 to
       file3 into file1. The result goes to standard output if -p
       is  present,  into  file1  otherwise.  merge is useful for
       combining separate changes to an original.  Suppose  file2
       is  the  original,  and both file1 and file3 are modifications
 of file2. Then merge combines both changes.

       An overlap occurs if both file1 and file3 have changes  in
       a  common  segment  of  lines.  On a few older hosts where
       diff3 does not support  the  -E  option,  merge  does  not
       detect  overlaps,  and  merely  supplies the changed lines
       from file3.  On most hosts, if overlaps occur, merge  outputs
  a  message  (unless  the  -q  option  is given), and
       includes both alternatives in the  result.   The  alternatives
 are delimited as follows:

       <<<<<<<  file1  lines  in  file1  =======  lines  in file3
       >>>>>>> file3

       If there are overlaps, the user should edit the result and
       delete  one  of  the alternatives. If the -L label1 and -L
       label3 options are given, the labels are output  in  place
       of the names file1 and file3 in overlap reports.

DIAGNOSTICS    [Toc]    [Back]

       Exit  status  is 0 for no overlaps, 1 for some overlaps, 2
       for trouble.

IDENTIFICATION    [Toc]    [Back]

       Author: Walter F. Tichy.
       Revision Number: 1.1.6.2; Release Date: 1993/10/07.
       Copyright (C) 1982, 1988, 1989 by Walter F. Tichy.
       Copyright (C) 1990, 1991 by Paul Eggert.

SEE ALSO    [Toc]    [Back]

      
      
       diff3(1), diff(1), rcsmerge(1), co(1)



                                                         merge(1)
[ Back ]
 Similar pages
Name OS Title
xdiff IRIX X11/Motif based file comparator and merge tool.
tt_session_types_load HP-UX merge a compiled ToolTalk types file into the running ttsession
slaeda IRIX compute the Z vector corresponding to the merge step in the CURLVLth step of the merge process with TLVLS step
dlaeda IRIX compute the Z vector corresponding to the merge step in the CURLVLth step of the merge process with TLVLS step
paste HP-UX merge same lines of several files or subsequent lines of one file
paste IRIX merge same lines of several files or subsequent lines of one file
rcsmerge IRIX merge RCS revisions
rcsmerge OpenBSD merge RCS revisions
rcsmerge Tru64 merge RCS revisions
rcsmerge FreeBSD merge RCS revisions
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service