mirror of https://github.com/CrimsonTome/tldr.git
cmp: refresh page (#7822)
parent
a443185d89
commit
1dc747127b
|
@ -3,10 +3,18 @@
|
|||
> Compare two files byte by byte.
|
||||
> More information: <https://www.gnu.org/software/diffutils/manual/html_node/Invoking-cmp.html>.
|
||||
|
||||
- Find the byte and line number of the first difference between two files:
|
||||
- Output char and line number of the first difference between two files:
|
||||
|
||||
`cmp {{path/to/file1}} {{path/to/file2}}`
|
||||
|
||||
- Find the byte number and differing bytes of every difference:
|
||||
- Output info of the first difference: char, line number, bytes, and values:
|
||||
|
||||
`cmp -l {{path/to/file1}} {{path/to/file2}}`
|
||||
`cmp --print-bytes {{path/to/file1}} {{path/to/file2}}`
|
||||
|
||||
- Output the byte numbers and values of every difference:
|
||||
|
||||
`cmp --verbose {{path/to/file1}} {{path/to/file2}}`
|
||||
|
||||
- Compare files but output nothing, yield only the exit status:
|
||||
|
||||
`cmp --quiet {{path/to/file1}} {{path/to/file2}}`
|
||||
|
|
Loading…
Reference in New Issue