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 (5 + 8) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 14.12.2009
Views: 869
Item date: 04.02.2010
Views: 920
Item date: 27.09.2009
Views: 948
Item date: 16.06.2009
Views: 476
Item date: 16.06.2009
Views: 1410
Item date: 01.08.2009
Views: 535
Item date: 20.07.2009
Views: 1798
Item date: 20.07.2009
Views: 1660
Item date: 20.07.2009
Views: 648
Item date: 01.07.2009
Views: 2227