Co robi MERGE użycie. Konsola if file2 is considered the original version of a file, file3 an.

Czy przydatne?

Polecenie merge

Wykonanie, użycie: Perform a three-way file merge, putting the result in file1. The effect is easiest to understand if file2 is considered the original version of a file, file3 an altered version of file2, and file1 a later altered version of file2.

After the merge, file1 contains both the changes from file2 to file1 and the changes from file2 to file3. In other words, file1 keeps its changes and incorporates the changes in file3 as well. merge does not change file2 or file3.

If a line from file2 was changed in different ways in both file1 and file3, merge recognizes a conflict. By default, the command outputs a warning and puts brackets around the conflict, with lines preceded by <<<<<<< and >>>>>>>. A typical conflict looks like this:

<<<<<<< file1 relevant lines from file1 ======= relevant lines from file3 >>>>>>> file3

If there are conflicts, the user should edit the result and delete one of the alternatives

Opcje wykonania merge w konsoli

-e

Don't warn about conflicts.

-p

Send results to standard output instead of overwriting file1.

-q

Quiet; do not warn about conflicts.

-A

Output conflicts using the -A style of diff3. This merges all changes leading from file2 to file3 into file1 and generates the most verbose output.

-E

Output conflict information in a less verbose style than -A; this is the default.

-L label

Specify up to three labels to be used in place of the corresponding filenames in conflict reports. That is:

merge -L x -L y -L z file_a file_b file_c

generates output that looks as if it came from x, y, and z instead of from file_a, file_b, and file_c.

-V

Print version number.

Przykłady merge działanie w Słownik polecenie M

Przykład MERGE użycie :
Jak użyć temporary filename for use in a script. The filename is based on the specified template, which may be any filename with at least six Xs appended (e.g., /tmp/mytemp.XXXXXX ). mktemp replaces the Xs co znaczy.
Przykład MERGE użycie :
Jak użyć partition specified by drive ; used mostly on proprietary Unix systems where fdisk is unavailable. See mtools for more information. When a partition is being created, the default is for the number of krzyżówka.
Przykład MERGE użycie :
Jak użyć Create a directory on an MS-DOS filesystem. See mkdir and mtools for more information co to jest.
Przykład MERGE użycie :
Jak użyć players, often used as backends for GUI music players. The files played may be local files or URLs. mpg321 and mpg123 behave the same way, except that mpg123 lacks the option --skip-printing-frames słownik.
Przykład MERGE użycie :
Jak użyć Delete an MS-DOS directory. The directory should be empty. To delete a full directory and its contents, use mdeltree . See rmdir and mtools for more information czym jest.