summaryrefslogtreecommitdiffstats
path: root/usr.bin/split/split.1
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-02-01 06:55:18 +0000
committermike <mike@FreeBSD.org>2002-02-01 06:55:18 +0000
commitc48bdad502a1dc2c961b8dba1eefffecc693218a (patch)
treeb42867eef6e9155e5b7657cb35e14a17e2333471 /usr.bin/split/split.1
parentefc80756a1dc2f98f4ad3342c110290dab2d4520 (diff)
downloadFreeBSD-src-c48bdad502a1dc2c961b8dba1eefffecc693218a.zip
FreeBSD-src-c48bdad502a1dc2c961b8dba1eefffecc693218a.tar.gz
Add -a option (SUSv3) to split(1).
Submitted by: Tim J. Robbins <tim@robbins.dropbear.id.au> MFC after: 1 month
Diffstat (limited to 'usr.bin/split/split.1')
-rw-r--r--usr.bin/split/split.122
1 files changed, 18 insertions, 4 deletions
diff --git a/usr.bin/split/split.1 b/usr.bin/split/split.1
index a4119a9..d6305ce 100644
--- a/usr.bin/split/split.1
+++ b/usr.bin/split/split.1
@@ -40,6 +40,7 @@
.Nd split a file into pieces
.Sh SYNOPSIS
.Nm
+.Op Fl a Ar suffix_length
.Op Fl b Ar byte_count[k|m]
.Op Fl l Ar line_count
.Op Fl p Ar pattern
@@ -54,6 +55,10 @@ and breaks it up into files of 1000 lines each.
.Pp
The options are as follows:
.Bl -tag -width Ds
+.It Fl a
+Use
+.Ar suffix_length
+letters to form the suffix of the file name.
.It Fl b
Create smaller files
.Ar byte_count
@@ -89,14 +94,20 @@ of the input file which is to be split.
If a second additional argument is specified, it is used as a prefix
for the names of the files into which the file is split.
In this case, each file into which the file is split is named by the
-prefix followed by a lexically ordered suffix in the range of
-.Dq Li aa-zz .
+prefix followed by a lexically ordered suffix using
+.Ar suffix_length
+characters in the range
+.Dq Li a-z .
+If
+.Fl a
+is not specified, two letters are used as the suffix.
.Pp
If the
.Ar name
argument is not specified, the file is split into lexically ordered
-files named in the range of
-.Dq Li xaa-zzz .
+files named with prefixes in the range of
+.Dq Li x-z
+and with suffixes as above.
.Sh BUGS
For historical reasons, if you specify
.Ar name ,
@@ -104,6 +115,9 @@ For historical reasons, if you specify
can only create 676 separate
files.
The default naming convention allows 2028 separate files.
+The
+.Fl a
+option can be used to work around this limitation.
.Pp
The maximum line length for matching patterns is 65536.
.Sh SEE ALSO
OpenPOWER on IntegriCloud