mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Base: Add a man-page for cmp(1)
This commit is contained in:
parent
1ba6974b60
commit
11ab8ee80a
Notes:
sideshowbarker
2024-07-17 17:06:32 +09:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/SerenityOS/serenity/commit/11ab8ee80a Pull-request: https://github.com/SerenityOS/serenity/pull/13137 Reviewed-by: https://github.com/bgianfo ✅
1 changed files with 29 additions and 0 deletions
29
Base/usr/share/man/man1/cmp.md
Normal file
29
Base/usr/share/man/man1/cmp.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
## Name
|
||||
|
||||
cmp - compare files
|
||||
|
||||
## Synopsis
|
||||
|
||||
```**sh
|
||||
$ cmp [options...] file1 file2
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
Compare two files and report the location of any differences. By default, execution stops after the first difference, but this can be overridden (see `--verbose` option). Byte and line numbers start at 1.
|
||||
|
||||
## Options
|
||||
|
||||
* `--help`: Display help message and exit
|
||||
* `-l`, `--verbose`: Output the byte number, and the differing bytes, for every difference.
|
||||
* `-s`, `--silent`: Silence output.
|
||||
|
||||
## Arguments
|
||||
|
||||
* `file1` and `file2`: Files to compare. Use `-` as the file name to read from standard input.
|
||||
|
||||
## Exit status
|
||||
|
||||
* 0 - Files are identical.
|
||||
* 1 - Files are different.
|
||||
* 2 - An error occurred.
|
Loading…
Reference in a new issue