diff options
author | Philippe Charnier <charnier@FreeBSD.org> | 1997-06-26 11:22:12 +0000 |
---|---|---|
committer | Philippe Charnier <charnier@FreeBSD.org> | 1997-06-26 11:22:12 +0000 |
commit | f771f05273eb656725d72a4e63d6d95637133fb7 (patch) | |
tree | 842d04569e2b8664894ae6ebd6db2515065535e5 /usr.bin/cmp | |
parent | b672570754b178caab507ccdc9ff98b9f0e54b5f (diff) | |
download | src-test2-f771f05273eb656725d72a4e63d6d95637133fb7.tar.gz src-test2-f771f05273eb656725d72a4e63d6d95637133fb7.zip |
Notes
Diffstat (limited to 'usr.bin/cmp')
-rw-r--r-- | usr.bin/cmp/cmp.1 | 10 | ||||
-rw-r--r-- | usr.bin/cmp/cmp.c | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/usr.bin/cmp/cmp.1 b/usr.bin/cmp/cmp.1 index 75339a804737..637b1ce97b4a 100644 --- a/usr.bin/cmp/cmp.1 +++ b/usr.bin/cmp/cmp.1 @@ -33,7 +33,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)cmp.1 8.1 (Berkeley) 6/6/93 -.\" $Id$ +.\" $Id: cmp.1,v 1.4 1997/02/22 19:54:29 peter Exp $ .\" .Dd June 6, 1993 .Dt CMP 1 @@ -47,10 +47,12 @@ .Ar file1 file2 .Op Ar skip1 Op Ar skip2 .Sh DESCRIPTION -The cmp utility compares two files of any type and writes the results +The +.Nm cmp +utility compares two files of any type and writes the results to the standard output. By default, -.Nm +.Nm cmp is silent if the files are the same; if they differ, the byte and line number at which the first difference occurred is reported. .Pp @@ -108,6 +110,6 @@ utility is expected to be compatible. .Sh HISTORY A -.Nm +.Nm cmp command appeared in .At v1 . diff --git a/usr.bin/cmp/cmp.c b/usr.bin/cmp/cmp.c index 86923df3a7e1..6755ff6d5eb6 100644 --- a/usr.bin/cmp/cmp.c +++ b/usr.bin/cmp/cmp.c @@ -157,6 +157,6 @@ usage() { (void)fprintf(stderr, - "usage: cmp [-l | s] file1 file2 [skip1 [skip2]]\n"); + "usage: cmp [-l | -s] file1 file2 [skip1 [skip2]]\n"); exit(ERR_EXIT); } |