Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/tail Sort options.
details: https://anonhg.NetBSD.org/src/rev/01af3be6a1cd
branches: trunk
changeset: 356545:01af3be6a1cd
user: wiz <wiz%NetBSD.org@localhost>
date: Mon Oct 02 08:23:23 2017 +0000
description:
Sort options.
-qv are not specific to -r, so separate them.
Add -q and -v descriptions to the general option table.
diffstat:
usr.bin/tail/tail.1 | 10 ++++++++--
usr.bin/tail/tail.c | 4 ++--
2 files changed, 10 insertions(+), 4 deletions(-)
diffs (62 lines):
diff -r 08aa4d7c24f1 -r 01af3be6a1cd usr.bin/tail/tail.1
--- a/usr.bin/tail/tail.1 Mon Oct 02 07:40:24 2017 +0000
+++ b/usr.bin/tail/tail.1 Mon Oct 02 08:23:23 2017 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: tail.1,v 1.18 2017/10/01 20:49:24 maya Exp $
+.\" $NetBSD: tail.1,v 1.19 2017/10/02 08:23:23 wiz Exp $
.\"
.\" Copyright (c) 1980, 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -40,10 +40,11 @@
.Nd display the last part of a file
.Sh SYNOPSIS
.Nm
+.Fl qv
.Oo
.Fl f |
.Fl F |
-.Fl rqv
+.Fl r
.Oc
.Oo
.Fl b Ar number |
@@ -113,6 +114,9 @@
The location is
.Ar number
lines.
+.It Fl q
+Do not prepend a header for each file, even if multiple files
+are specified.
.It Fl r
The
.Fl r
@@ -131,6 +135,8 @@
The default for the
.Fl r
option is to display all of the input.
+.It Fl v
+Prepend each file with a header.
.El
.Pp
If more than a single file is specified, or the
diff -r 08aa4d7c24f1 -r 01af3be6a1cd usr.bin/tail/tail.c
--- a/usr.bin/tail/tail.c Mon Oct 02 07:40:24 2017 +0000
+++ b/usr.bin/tail/tail.c Mon Oct 02 08:23:23 2017 +0000
@@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)tail.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: tail.c,v 1.18 2017/10/01 20:49:24 maya Exp $");
+__RCSID("$NetBSD: tail.c,v 1.19 2017/10/02 08:23:23 wiz Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -317,7 +317,7 @@
usage(void)
{
(void)fprintf(stderr,
- "Usage: %s [-f | -F | -rqv] [-b # | -c # | -n #] [file ...]\n",
+ "Usage: %s [-qv] [-f | -F | -r] [-b # | -c # | -n #] [file ...]\n",
getprogname());
exit(1);
}
Home |
Main Index |
Thread Index |
Old Index