From 11ab8ee80ab2af227432a856cf2cf1b1f9f6e329 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Sat, 19 Mar 2022 17:07:10 +0000 Subject: [PATCH] Base: Add a man-page for cmp(1) --- Base/usr/share/man/man1/cmp.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Base/usr/share/man/man1/cmp.md diff --git a/Base/usr/share/man/man1/cmp.md b/Base/usr/share/man/man1/cmp.md new file mode 100644 index 0000000000..3f84cdfb69 --- /dev/null +++ b/Base/usr/share/man/man1/cmp.md @@ -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.