On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com
How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy
Comparing and Merging Files
Table of Contents
Comparing and Merging Files
Overview
What Comparison Means
Hunks
Suppressing Differences in Blank and Tab Spacing
Suppressing Differences in Blank Lines
Suppressing Case Differences
Suppressing Lines Matching a Regular Expression
Summarizing Which Files Differ
Binary Files and Forcing Text Comparisons
diff
Output Formats
Two Sample Input Files
Showing Differences Without Context
Detailed Description of Normal Format
An Example of Normal Format
Showing Differences in Their Context
Context Format
Detailed Description of Context Format
An Example of Context Format
An Example of Context Format with Less Context
Unified Format
Detailed Description of Unified Format
An Example of Unified Format
Showing Which Sections Differences Are in
Showing Lines That Match Regular Expressions
Showing C Function Headings
Showing Alternate File Names
Showing Differences Side by Side
Controlling Side by Side Format
An Example of Side by Side Format
Making Edit Scripts
ed
Scripts
Detailed Description of
ed
Format
Example
ed
Script
Forward
ed
Scripts
RCS
Scripts
Merging Files with If-then-else
Line Group Formats
Line Formats
Detailed Description of If-then-else Format
An Example of If-then-else Format
Incomplete Lines
Comparing Directories
Making
diff
Output Prettier
Preserving Tab Stop Alignment
Paginating
diff
Output
diff
Performance Tradeoffs
Comparing Three Files
A Third Sample Input File
Detailed Description of
diff3
Normal Format
diff3
Hunks
An Example of
diff3
Normal Format
Merging From a Common Ancestor
Selecting Which Changes to Incorporate
Marking Conflicts
Generating the Merged Output Directly
How
diff3
Merges Incomplete Lines
Saving the Changed File
Interactive Merging with
sdiff
Specifying
diff
Options to
sdiff
Merge Commands
Merging with
patch
Selecting the
patch
Input Format
Revision Control
Applying Imperfect Patches
Applying Patches with Changed White Space
Applying Reversed Patches
Helping
patch
Find Inexact Matches
Predicting what
patch
will do
Creating and Removing Files
Updating Time Stamps on Patched Files
Multiple Patches in a File
Applying Patches in Other Directories
Backup Files
Backup File Names
Reject File Names
Messages and Questions from
patch
Controlling the Verbosity of
patch
Inhibiting Keyboard Input
patch
Quoting Style
patch
and the
POSIX
Standard
GNU
patch
and Traditional
patch
Tips for Making and Using Patches
Tips for Patch Producers
Tips for Patch Consumers
Avoiding Common Mistakes
Generating Smaller Patches
Invoking
cmp
Options to
cmp
Invoking
diff
Options to
diff
Invoking
diff3
Options to
diff3
Invoking
patch
Options to
patch
Invoking
sdiff
Options to
sdiff
Standards conformance
Future Projects
Suggested Projects for Improving
GNU
diff
and
patch
Handling Multibyte and Varying-Width Characters
Handling Changes to the Directory Structure
Files that are Neither Directories Nor Regular Files
File Names that Contain Unusual Characters
Outputting Diffs in Time Stamp Order
Ignoring Certain Changes
Improving Performance
Reporting Bugs
Copying This Manual
GNU Free Documentation License
ADDENDUM: How to use this License for your documents
Index
Published under the terms of the GNU General Public License
Design by Interspire
x