⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 diff3.1

📁 早期freebsd实现
💻 1
字号:
.\" Copyright (c) 1990, 1993, 1994.\"	The Regents of the University of California.  All rights reserved..\".\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\" 1. Redistributions of source code must retain the above copyright.\"    notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\"    notice, this list of conditions and the following disclaimer in the.\"    documentation and/or other materials provided with the distribution..\" 3. All advertising materials mentioning features or use of this software.\"    must display the following acknowledgement:.\"	This product includes software developed by the University of.\"	California, Berkeley and its contributors..\" 4. Neither the name of the University nor the names of its contributors.\"    may be used to endorse or promote products derived from this software.\"    without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION).\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\"     @(#)diff3.1	8.2 (Berkeley) 4/18/94.\".Dd April 18, 1994.Dt DIFF3 1.Os BSD 4.3R.Sh NAME.Nm diff3.Nd 3-way differential file comparison.Sh SYNOPSIS.Nm diff3.Op Fl exEX3.Ar file1 file2 file3.Sh DESCRIPTIONThe.Nm diff3utility compares the contents of three different versions of a file,.Ar file1 ,.Ar file2and.Ar file3 ,writing the result to the standard output.The options describe different methods of merging andpurgingthe separate versions into a new file..Nm Diff3is used by.Xr RCS 1to merge specific versions or createnew versions..PpOptions are:.Bl -tag -width "--E, --X".It Fl eProduces output in a form suitable as an input script for the.Xr ed 1utility.  The script may then be used to merge differences commonbetween all three files and differences specific to file1 and file3.In other words, the.Fl eoption ignores differences specific to file1 and file2, and thosespecific to file2 and file3.  It is useful for backing out changesspecific to file2 only..It Fl xProduces an output script suitable for.Xr ed 1with changesspecific only to all three versions..It Fl 3Produces an output script suitable for.Xr ed 1with changesspecific only to file3..It Fl E , XSimilar to.Fl eand.Fl x  ,respectively, but treat overlapping changes (i.e., changes that wouldbe noted with ==== in the normal listing) differently.  The overlappinglines from both files will be inserted by the edit script, bracketedby "<<<<<<" and ">>>>>>" lines..El.PpThe.Fl Eoption is used by.Tn RCS.Xr merge  1to insure that overlapping changes in the merged files are preservedand brought to someone's attention..PpFor example, suppose lines 7-8 are changed in both file1 and file2.Applying the edit script generated by the command.Pp.Dl diff3 -E file1 file2 file3.Ppto file1 results in the file:.Pp.Bd -literal -offset indent -compactlines 1-6of file1<<<<<<< file1lines 7-8of file1=======lines 7-8of file3>>>>>>> file3rest of file1.Ed.PpThe default output of.Nm diff3makes notation of the differences between all files, and those differencesspecific to each pair of files. Thechanges are described bythe commands necessary for.Xr ed 1 to create the desired target from the different versions.See.Xr diff 1for a description of the commands..Bl -tag -width "=====".It Li \&====The lines beneath this notation are ranges of lines which are differentbetween all files..It \&==== Ns Va nThe lines beneath this notation are ranges of lines which are exclusivelydifferent in file.Va n ..El.Sh FILES.Bl -tag -width /usr/bin/diff3 -compact.It Pa /tmp/d3?????temporary files..It Pa /usr/bin/diff3the executable..El.Sh SEE ALSO.Xr diff 1.Xr ed 1.Xr rcs 1.Sh BUGSThe.Fl eoptioncannot catch and changelines which have.Ql \&.as the first and only character on the line.The resulting script will fail on that lineas.Ql \&.is an.Xr ed 1editing command..Sh HISTORYA.Nmcommand appeared in.At v7 .

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -