split(1)split(1)NAMEsplit - split a file into pieces
SYNOPSIS
line_count] suffix_length] [file [name]]
nsuffix_length] [file [name]]
Obsolescent
n] [file [name]]
DESCRIPTION
reads file and writes it in pieces (default 1000 lines) onto a set of
output files. The name of the first output file is name with appended,
and so on lexicographically, up to (only ASCII letters are used, a max‐
imum of 676 files). If no output name is given, is the default.
If no input file is given, or if is given instead, the standard input
file is used.
Options
recognizes the following command-line options and arguments:
The input file is split into pieces
line_count lines in size.
suffix_length letters are used to form the suffix of the output
filenames. This option allows creation of more
than 676 output files. The output file names
created cannot exceed the maximum file name
length allowed in the directory containing the
files.
The input file is split into pieces
n bytes in size.
The input file is split into pieces
n × 1024 bytes in size. No space separates the n
from the
The input file is split into pieces
n × 1048576 bytes in size. No space separates
the n from the
The input file is split into pieces
n lines in size. This option is obsolescent and
is equivalent to using the option.
EXTERNAL INFLUENCES
Environment Variables
determines the locale for the interpretation of text as single- and/or
multi-byte characters.
determines the language in which messages are displayed.
If or is not specified in the environment or is set to the empty
string, the value of is used as a default for each unspecified or empty
variable. If is not specified or is set to the empty string, a default
of "C" (see lang(5)) is used instead of
If any internationalization variable contains an invalid setting,
behaves as if all internationalization variables are set to "C". See
environ(5).
International Code Set Support
Single- and multi-byte character code sets are supported.
SEE ALSOcsplit(1).
STANDARDS CONFORMANCEsplit(1)