SPLIT
Section: User Commands (1)
Index
Return to Main Contents
BSD mandoc
NAME
split
- split a file into pieces
SYNOPSIS
split
[-n
]
[-b bytes
]
[file [name
]
]
DESCRIPTION
The
split
utility reads the given
file
and splits it up in to
smaller files.
Available options:
- -lines
-
Create files of length
-n
lines long.
- -b bytes
-
Create files of length
bytes
If no output file length is specified, the file size
will default to a lenght of 1000 lines.
Available operands:
- -
-
Read from the standard input.
- file
-
A pathname specifying the
file
to be split. If no
file
operand is given,
split
reads from the standard input.
- name
-
If the
name
operand is given,
the output files will begin with the prefix
name
and each sequential portion of the split file
receives a lexically ordered suffix
in the range of
Bq Em aa-zz .
If the operand
name
is not specified,
the default prefix of
x
is be used.
BUGS
If you provide
name
split
can only create 676 separate
files. The default naming convention allows 2028 separate files.
HISTORY
A
split
command appeared in
AT&T System
v6 .
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- BUGS
-
- HISTORY
-
This document was created by
man2html,
using the manual pages.
Time: 06:28:06 GMT, May 19, 2025