summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/head/head.c6
-rw-r--r--usr.bin/tail/tail.c7
2 files changed, 7 insertions, 6 deletions
diff --git a/usr.bin/head/head.c b/usr.bin/head/head.c
index ca01c84cadb..3a6ca123803 100644
--- a/usr.bin/head/head.c
+++ b/usr.bin/head/head.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: head.c,v 1.13 2006/10/09 00:24:36 tedu Exp $ */
+/* $OpenBSD: head.c,v 1.14 2007/10/31 16:29:50 jmc Exp $ */
/*
* Copyright (c) 1980, 1987 Regents of the University of California.
@@ -34,7 +34,7 @@ static const char copyright[] =
"@(#) Copyright (c) 1980, 1987 Regents of the University of California.\n\
All rights reserved.\n";
/*static char sccsid[] = "from: @(#)head.c 5.5 (Berkeley) 6/1/90";*/
-static const char rcsid[] = "$OpenBSD: head.c,v 1.13 2006/10/09 00:24:36 tedu Exp $";
+static const char rcsid[] = "$OpenBSD: head.c,v 1.14 2007/10/31 16:29:50 jmc Exp $";
#endif /* not lint */
#include <stdio.h>
@@ -116,6 +116,6 @@ main(int argc, char *argv[])
static void
usage(void)
{
- fputs("usage: head [-n line_count] [file ...]\n", stderr);
+ fputs("usage: head [-count | -n count] [file ...]\n", stderr);
exit(1);
}
diff --git a/usr.bin/tail/tail.c b/usr.bin/tail/tail.c
index 39191f96cde..2246e7b77db 100644
--- a/usr.bin/tail/tail.c
+++ b/usr.bin/tail/tail.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tail.c,v 1.13 2006/03/22 19:43:29 kjell Exp $ */
+/* $OpenBSD: tail.c,v 1.14 2007/10/31 16:29:50 jmc Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -42,7 +42,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)tail.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: tail.c,v 1.13 2006/03/22 19:43:29 kjell Exp $";
+static char rcsid[] = "$OpenBSD: tail.c,v 1.14 2007/10/31 16:29:50 jmc Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -301,6 +301,7 @@ static void
usage(void)
{
(void)fprintf(stderr,
- "usage: tail [-f | -r] [-b # | -c # | -n #] [file ...]\n");
+ "usage: tail [-f | -r] "
+ "[-b number | -c number | -n number | -number] [file ...]\n");
exit(1);
}