aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/split/split.1
diff options
context:
space:
mode:
authorDavid Schultz <das@FreeBSD.org>2008-03-16 15:15:32 +0000
committerDavid Schultz <das@FreeBSD.org>2008-03-16 15:15:32 +0000
commit0e286f086c7bf9c728c2917887ad46ec7916271e (patch)
treeb7db89f000ae8b486155cc49ed0508d4e6849493 /usr.bin/split/split.1
parentcc456a74abba6dd841eecf92700b338252cdb5ca (diff)
downloadsrc-0e286f086c7bf9c728c2917887ad46ec7916271e.tar.gz
src-0e286f086c7bf9c728c2917887ad46ec7916271e.zip
Add a -n option to split(1) to split files into N chunks rather than
having to specify the right number of bytes. Obtained from: NetBSD Submitted by: Jan Schaumann <jschauma@netmeister.org> PR: 113175
Notes
Notes: svn path=/head/; revision=177256
Diffstat (limited to 'usr.bin/split/split.1')
-rw-r--r--usr.bin/split/split.110
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.bin/split/split.1 b/usr.bin/split/split.1
index 5e8e198cba9e..782521984f8a 100644
--- a/usr.bin/split/split.1
+++ b/usr.bin/split/split.1
@@ -32,7 +32,7 @@
.\" @(#)split.1 8.3 (Berkeley) 4/16/94
.\" $FreeBSD$
.\"
-.Dd August 10, 2006
+.Dd March 16, 2008
.Dt SPLIT 1
.Os
.Sh NAME
@@ -53,6 +53,10 @@
.Op Fl a Ar suffix_length
.Op Ar file Op Ar prefix
.Nm
+.Fl n Ar chunk_count
+.Op Fl a Ar suffix_length
+.Op Ar file Op Ar prefix
+.Nm
.Fl p Ar pattern
.Op Fl a Ar suffix_length
.Op Ar file Op Ar prefix
@@ -112,6 +116,10 @@ gigabyte pieces.
Create smaller files
.Ar line_count
lines in length.
+.It Fl n Ar chunk_count
+Split file int
+.Ar chunk_count
+smaller files.
.It Fl p Ar pattern
The file is split whenever an input line matches
.Ar pattern ,