Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/csplit Correct number of output files in example.



details:   https://anonhg.NetBSD.org/src/rev/fc03b049fa7c
branches:  trunk
changeset: 326579:fc03b049fa7c
user:      wiz <wiz%NetBSD.org@localhost>
date:      Tue Feb 04 19:48:48 2014 +0000

description:
Correct number of output files in example.
>From Jason McIntyre <jmc@OpenBSD>.

While here, also explain about the extra file in the example and
put .Ex into its own section in the correct place. Bump date.

diffstat:

 usr.bin/csplit/csplit.1 |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (43 lines):

diff -r 733979a7e561 -r fc03b049fa7c usr.bin/csplit/csplit.1
--- a/usr.bin/csplit/csplit.1   Tue Feb 04 18:51:16 2014 +0000
+++ b/usr.bin/csplit/csplit.1   Tue Feb 04 19:48:48 2014 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: csplit.1,v 1.4 2009/03/12 12:35:51 joerg Exp $
+.\"    $NetBSD: csplit.1,v 1.5 2014/02/04 19:48:48 wiz Exp $
 .\"
 .\" Copyright (c) 2002 Tim J. Robbins.
 .\" All rights reserved.
@@ -26,7 +26,7 @@
 .\"
 .\" $FreeBSD: src/usr.bin/csplit/csplit.1,v 1.11 2005/01/25 22:29:51 tjr Exp $
 .\"
-.Dd January 4, 2009
+.Dd February 4, 2014
 .Dt CSPLIT 1
 .Os
 .Sh NAME
@@ -121,8 +121,6 @@
 .Pp
 Requesting to split at a line before the current line number or past the
 end of the file will result in an error.
-.Pp
-.Ex -std
 .Sh ENVIRONMENT
 The
 .Ev LANG , LC_ALL , LC_COLLATE ,
@@ -132,12 +130,14 @@
 .Nm
 as described in
 .Xr environ 7 .
+.Sh EXIT STATUS
+.Ex -std
 .Sh EXAMPLES
 Split the
 .Xr mdoc 7
 file
 .Pa foo.1
-into one file for each section (up to 20):
+into one file for each section (up to 21 plus one for the rest, if any):
 .Pp
 .Dl "$ csplit -k foo.1 '%^\e.Sh%' '/^\e.Sh/' '{20}'"
 .Pp



Home | Main Index | Thread Index | Old Index