02.05.2013 Views

Description - Mks.com

Description - Mks.com

Description - Mks.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

NAME<br />

diff, diffh, bdiff, vdiff32<br />

diff, diffh, bdiff, vdiff32 — <strong>com</strong>pare two text files and show differences<br />

SYNOPSIS<br />

diff [-BbefHhimnrsw] [-C n] [-c[n]] [-Difname] [-Mmark] [-U[b|B|l|L]] path1 path2<br />

diff [-BbefHhimnrsw] [-C n] [-c[n]] [-Difname] [-Mmark] [-U[b|B|l|L]] file... dir<br />

diffh [-Bbefimnrsw] [-C n] [-c[n]] [-Difname] [-Mmark] [-U[b|B|l|L]] path1 path2<br />

diffh [-Bbefimnrsw] [-C n] [-c[n]] [-Difname] [-Mmark] [-U[b|B|l|L]] file... dir<br />

bdiff [-Bbefimnrsw] [-C n] [-c[n]] [-Difname] [-Mmark] [-U[b|B|l|L]] path1 path2 [n]<br />

bdiff [-Bbefimnrsw] [-C n] [-c[n]] [-Difname] [-Mmark] [-U[b|B|l|L]] file... dir [n]<br />

vdiff32<br />

DESCRIPTION<br />

The diff <strong>com</strong>mand attempts to determine the minimal set of changes needed either to convert a<br />

file named path1 into path2 or the group of files indicated by file... into files of the same name<br />

found under the directory dir. Besides normal text files, diff also works on 16-bit Unicode files.<br />

Such files normally begin with a two-byte marker indicating whether the file's Unicode characters<br />

are big-endian or little-endian.<br />

If either (but only one) file name is -, diff reads that file from the standard input. If only two path<br />

names appear on the <strong>com</strong>mand line and one of path1 or path2 is a directory, diff uses a file in<br />

that directory with the same name as the other file name. If both are directories, diff <strong>com</strong>pares<br />

files with the same file names under the two directories. However, diff does not <strong>com</strong>pare files in<br />

subdirectories unless you specify the -r option. When <strong>com</strong>paring two directories, diff does not<br />

<strong>com</strong>pare block special files, character special files, or FIFO special files to any other files and does<br />

not <strong>com</strong>pare regular files to directories.<br />

If more than two path names appear on the <strong>com</strong>mand line, the last path name is assumed to be a<br />

directory and the preceding path names to be files. diff then <strong>com</strong>pares each file in the list to a file<br />

with the name under the specified directory.<br />

By default, output consists of descriptions of the changes in a style reminiscent of the ed text<br />

editor. A line indicating the type of change is given. The three types are a (append), d (delete), and<br />

c (change). The output is symmetric in the sense that a delete in path1 is the counterpart of an<br />

append in path2. diff prefixes each operation with a line number (or range) in path1 and suffixes<br />

376 of 457

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!