summaryrefslogtreecommitdiff
path: root/usr.bin/split
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2005-09-07 12:46:00 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2005-09-07 12:46:00 +0000
commit5fc46b328224e81b6da6d19259aa51a06740e5d3 (patch)
treeb290f8ac418e82bcb7482b5ba97d8381ed0040a6 /usr.bin/split
parent8b716ce7adbf2807e854706c55066a038df27b86 (diff)
split.1:
add the relevant arguments to the options synopsis for -b and -l; tidy up the formatting of [-b byte_count[k|m]]; make SYNOPSIS arg for -l match its description; split.c: sync usage();
Diffstat (limited to 'usr.bin/split')
-rw-r--r--usr.bin/split/split.121
-rw-r--r--usr.bin/split/split.c6
2 files changed, 19 insertions, 8 deletions
diff --git a/usr.bin/split/split.1 b/usr.bin/split/split.1
index e9b33642c6a..8069d3cffe4 100644
--- a/usr.bin/split/split.1
+++ b/usr.bin/split/split.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: split.1,v 1.9 2003/06/03 02:56:16 millert Exp $
+.\" $OpenBSD: split.1,v 1.10 2005/09/07 12:45:59 jmc Exp $
.\" $NetBSD: split.1,v 1.5 1994/12/21 08:20:35 jtc Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993, 1994
@@ -38,7 +38,12 @@
.Nd split a file into pieces
.Sh SYNOPSIS
.Nm split
-.Op Fl b Ar byte_count[k|m]
+.Oo
+.Fl b
+.Sm off
+.Ar byte_count Op Ar k | m
+.Sm on
+.Oc
.Op Fl l Ar line_count
.Op Fl p Ar pattern
.Op Ar file Op Ar name
@@ -52,7 +57,13 @@ and breaks it up into files of 1000 lines each.
.Pp
The options are as follows:
.Bl -tag -width Ds
-.It Fl b
+.It Xo
+.Fl b
+.Sm off
+.Ar byte_count
+.Op Ar k | m
+.Sm on
+.Xc
Create smaller files
.Ar byte_count
bytes in length.
@@ -66,9 +77,9 @@ If
is appended to the number, the file is split into
.Ar byte_count
megabyte pieces.
-.It Fl l
+.It Fl l Ar line_count
Create smaller files
-.Ar n
+.Ar line_count
lines in length.
.It Fl p Ar pattern
The file is split whenever an input line matches
diff --git a/usr.bin/split/split.c b/usr.bin/split/split.c
index 8726d6c9d34..53b46ab347f 100644
--- a/usr.bin/split/split.c
+++ b/usr.bin/split/split.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: split.c,v 1.9 2003/06/10 22:20:51 deraadt Exp $ */
+/* $OpenBSD: split.c,v 1.10 2005/09/07 12:45:59 jmc Exp $ */
/* $NetBSD: split.c,v 1.5 1995/08/31 22:22:05 jtc Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)split.c 8.3 (Berkeley) 4/25/94";
#else
-static char rcsid[] = "$OpenBSD: split.c,v 1.9 2003/06/10 22:20:51 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: split.c,v 1.10 2005/09/07 12:45:59 jmc Exp $";
#endif
#endif /* not lint */
@@ -311,7 +311,7 @@ usage(void)
extern char *__progname;
(void)fprintf(stderr,
-"usage: %s [-b byte_count] [-l line_count] [-p pattern] [file [prefix]]\n",
+"usage: %s [-b byte_count[k|m]] [-l line_count] [-p pattern] [file [name]]\n",
__progname);
exit(EX_USAGE);
}