home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 51
/
Amiga_Dream_51.iso
/
Atari
/
Desktops
/
text113b.zoo
/
textutils-1.13
/
man
/
split.1
< prev
next >
Wrap
Text File
|
1996-01-21
|
3KB
|
133 lines
SPLIT(1) SPLIT(1)
NNAAMMEE
split - split a file into pieces
SSYYNNOOPPSSIISS
sspplliitt [-lines] [-l lines] [-b bytes[bkm]] [-C bytes[bkm]]
[--lines=lines] [--bytes=bytes[bkm]] [--line-
bytes=bytes[bkm]] [--help] [--version] [infile [outfile-
prefix]]
DDEESSCCRRIIPPTTIIOONN
This manual page documents the GNU version of sspplliitt.
sspplliitt creates one or more output files (as many as neces-
sary) containing consecutive sections of the _i_n_f_i_l_e, or
the standard input if none is given or the name `-' is
given. By default, sspplliitt puts 1000 lines of the input
file, or whatever is left if it is less than that, into
each output file.
The output file names consist of a prefix followed by a
group of letters, chosen so that concatenating the output
files in sorted order by file name produces the original
input file, in order. The default output file name prefix
is `x'. If the _o_u_t_f_i_l_e_-_p_r_e_f_i_x argument is given, it is
used as the output file name prefix instead.
OOPPTTIIOONNSS
_-_l_i_n_e_s_, _-_l _l_i_n_e_s_, _-_-_l_i_n_e_s_=_l_i_n_e_s
Put _l_i_n_e_s lines of the input file into each output
file.
_-_b _b_y_t_e_s_[_b_k_m_]_, _-_-_b_y_t_e_s_=_b_y_t_e_s_[_b_k_m_]
Put _b_y_t_e_s bytes of the input file into each output
file. _b_y_t_e_s is a nonzero integer, optionally fol-
lowed by one of the following characters to specify
a different unit.
b 512-byte blocks.
k 1-kilobyte blocks.
m 1-megabyte blocks.
_-_C _b_y_t_e_s_[_b_k_m_]_, _-_-_l_i_n_e_-_b_y_t_e_s_=_b_y_t_e_s_[_b_k_m_]
Put into each output file as many complete lines of
the input file as is possible without exceeding
_b_y_t_e_s bytes. If a line that is longer than _b_y_t_e_s
bytes occurs, put _b_y_t_e_s bytes of it into each out-
put file until less than _b_y_t_e_s bytes of the line
are left, then continue normally. _b_y_t_e_s has the
same format as for the _-_-_b_y_t_e_s option.
_-_-_h_e_l_p Print a usage message and exit with a status code
indicating success.
FSF GNU Text Utilities 1
SPLIT(1) SPLIT(1)
_-_-_v_e_r_s_i_o_n
Print version information on standard output then
exit.
FSF GNU Text Utilities 2