split: Split a file into fixed-size pieces

Split a file into fixed-size pieces, creates output files containing
consecutive sections of INPUT (standard input if none is given or INPUT is `-?)
Syntax
split [options] [INPUT [PREFIX]]

Options

-LINES
-l LINES
--lines=LINES
Put LINES lines of INPUT into each output file.

-b BYTES
--bytes=BYTES
Put the first BYTES bytes of INPUT into each output file.
Appending `b? multiplies BYTES by 512, `k? by 1024, and `m? by
1048576.

-C BYTES
--line-bytes=BYTES
Put into each output file as many complete lines of INPUT as
possible without exceeding BYTES bytes. For lines longer than
BYTES bytes, put BYTES bytes into each output file until less than
BYTES bytes of the line are left, then continue normally. BYTES
has the same format as for the `--bytes? option.

--verbose
Write a diagnostic to standard error just before each output file
is opened.
By default, `split? puts 1000 lines of INPUT (or whatever is
left over for the last section), into each output file.

The output files? names consist of PREFIX (`x? by default) followed by a group
of letters `aa?, `ab?, and so on, such that concatenating the output files in
sorted order by file name produces the original input file.

If more than 676 output files are required, `split? uses `zaa?, `zab?, etc.

"The man who is tired of London is tired of looking for a parking space"
- Paul
Theroux
Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (3 + 8) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 13.05.2009
Views: 2017
Item date: 24.08.2009
Views: 1082
Item date: 20.07.2009
Views: 1815
Item date: 12.04.2009
Views: 612
Item date: 25.09.2009
Views: 1545
Item date: 01.05.2009
Views: 1682
Item date: 26.09.2009
Views: 701
Item date: 20.07.2009
Views: 1597
Item date: 03.01.2009
Views: 1475
Item date: 08.03.2009
Views: 1011