cmp: refresh page (#7822)

pull/1/head
git-em 2022-07-30 09:05:02 -03:00 committed by GitHub
parent a443185d89
commit 1dc747127b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 3 deletions

View File

@ -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}}`