diff options
author | Giorgos Keramidas <keramida@FreeBSD.org> | 2006-08-10 10:41:47 +0000 |
---|---|---|
committer | Giorgos Keramidas <keramida@FreeBSD.org> | 2006-08-10 10:41:47 +0000 |
commit | a6dd1c93f49cf4b8e1d7ed6ed4100aef37d0ceab (patch) | |
tree | e9178db3548ea9d43dd71ffd1b7cff64a03b3dfa /usr.bin/split/split.1 | |
parent | 04d9e255dfea0a3bf86eeb984dd940d7705df670 (diff) |
Add support for splitting at gigabyte boundaries. [1]
Also make both lowercase and uppercase suffix letters work
as byte-count suffixes, i.e. the following two commands are
equivalent now:
% split -b 4m foo
% split -b 4M foo
Submitted by: Roman Divacky [1]
Lots of help by: cperciva
Reviewed by: cperciva
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=161172
Diffstat (limited to 'usr.bin/split/split.1')
-rw-r--r-- | usr.bin/split/split.1 | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/usr.bin/split/split.1 b/usr.bin/split/split.1 index afd7dc4d11ac..329326d345bf 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 9, 2006 +.Dd August 10, 2006 .Dt SPLIT 1 .Os .Sh NAME @@ -46,7 +46,7 @@ .Nm .Fl b Ar byte_count Ns .Oo -.Cm k Ns | Ns Cm m +.Cm K Ns | Ns Cm k Ns | Ns Cm M Ns | Ns Cm m Ns | Ns Cm G Ns | Ns Cm g .Oc .Op Fl a Ar suffix_length .Op Ar file Op Ar prefix @@ -77,20 +77,31 @@ The options are as follows: Use .Ar suffix_length letters to form the suffix of the file name. -.It Fl b Ar byte_count Ns Op Cm k Ns | Ns Cm m +.It Fl b Ar byte_count Ns Op Cm K Ns | Ns Cm k Ns | Ns Cm M Ns | Ns Cm m Ns | Ns Cm G Ns | Ns Cm g Create smaller files .Ar byte_count bytes in length. If .Cm k +or +.Cm K is appended to the number, the file is split into .Ar byte_count kilobyte pieces. If .Cm m +or +.Cm M is appended to the number, the file is split into .Ar byte_count megabyte pieces. +If +.Cm g +or +.Cm G +is appended to the number, the file is split into +.Ar byte_count +gigabyte pieces. .It Fl l Ar line_count Create smaller files .Ar line_count |