1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

Mention that -cd and -cu are possible, and that it's an extension to POSIX.

discussed with jmc and otto

ok jmc
This commit is contained in:
kili 2007-11-11 17:50:29 +00:00
parent a78b0503ad
commit 2dff643533
2 changed files with 15 additions and 6 deletions

View File

@ -1,4 +1,4 @@
.\" $OpenBSD: uniq.1,v 1.13 2007/11/09 20:04:03 kili Exp $
.\" $OpenBSD: uniq.1,v 1.14 2007/11/11 17:50:29 kili Exp $
.\" $NetBSD: uniq.1,v 1.5 1994/12/06 07:51:15 jtc Exp $
.\"
.\" Copyright (c) 1991, 1993
@ -33,7 +33,7 @@
.\"
.\" @(#)uniq.1 8.1 (Berkeley) 6/6/93
.\"
.Dd $Mdocdate: November 9 2007 $
.Dd $Mdocdate: November 11 2007 $
.Dt UNIQ 1
.Os
.Sh NAME
@ -41,7 +41,8 @@
.Nd report or filter out repeated lines in a file
.Sh SYNOPSIS
.Nm uniq
.Op Fl c | d | u
.Op Fl c
.Op Fl d | u
.Op Fl f Ar fields
.Op Fl s Ar chars
.Oo
@ -126,6 +127,14 @@ utility is compliant with the
.St -p1003.1-2004
specification.
.Pp
The use of
.Fl c
in conjunction with
.Fl d
or
.Fl u
is an extension to that specification.
.Pp
The historic
.Cm + Ns Ar number
and

View File

@ -1,4 +1,4 @@
/* $OpenBSD: uniq.c,v 1.16 2007/11/09 20:04:03 kili Exp $ */
/* $OpenBSD: uniq.c,v 1.17 2007/11/11 17:50:29 kili Exp $ */
/* $NetBSD: uniq.c,v 1.7 1995/08/31 22:03:48 jtc Exp $ */
/*
@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)uniq.c 8.3 (Berkeley) 5/4/95";
#endif
static char rcsid[] = "$OpenBSD: uniq.c,v 1.16 2007/11/09 20:04:03 kili Exp $";
static char rcsid[] = "$OpenBSD: uniq.c,v 1.17 2007/11/11 17:50:29 kili Exp $";
#endif /* not lint */
#include <ctype.h>
@ -243,7 +243,7 @@ usage(void)
extern char *__progname;
(void)fprintf(stderr,
"usage: %s [-c | -d | -u] [-f fields] [-s chars] [input_file [output_file]]\n",
"usage: %s [-c] [-d | -u] [-f fields] [-s chars] [input_file [output_file]]\n",
__progname);
exit(1);
}