MAN page from Old RedHat 5.X textutils-1.22-5.i386.rpm
SPLIT
Section: User Commands (1)
Updated: GNU Text Utilities
Index NAME
split - split a file into pieces
SYNOPSIS
split[-lines] [-l lines] [-b bytes[bkm]] [-C bytes[bkm]] [--lines=lines][--bytes=bytes[bkm]] [--line-bytes=bytes[bkm]] [--help] [--version][infile [outfile-prefix]]
DESCRIPTION
This documentation is no longer being maintained and may be inaccurateor incomplete. The Texinfo documentation is now the authoritative source.
This manual pagedocuments the GNU version ofsplit.splitcreates one or more output files (as many as necessary) containingconsecutive sections of theinfile,or the standard input if none is given or the name `-' is given.By default,splitputs 1000 lines of the input file, or whatever is left if it is lessthan that, into each output file.
The output file names consist of a prefix followed by a group ofletters, chosen so that concatenating the output files in sorted orderby file name produces the original input file, in order. The defaultoutput file name prefix is `x'. If theoutfile-prefixargument is given, it is used as the output file name prefix instead.
OPTIONS
- -lines, -l lines, --lines=lines
- Putlineslines of the input file into each output file.
- -b bytes[bkm], --bytes=bytes[bkm]
- Putbytesbytes of the input file into each output file.bytesis a nonzero integer, optionally followed by oneof the following characters to specify a different unit.
- b
- 512-byte blocks.
- k
- 1-kilobyte blocks.
- m
- 1-megabyte blocks.
- -C bytes[bkm], --line-bytes=bytes[bkm]
- Put into each output file as many complete lines of the input file asis possible without exceedingbytesbytes. If a line that is longer thanbytesbytes occurs, putbytesbytes of it into each output file until less thanbytesbytes of the line are left, then continue normally.byteshas the same format as for the--bytesoption.
- --help
- Print a usage message and exit with a status code indicating success.
- --version
- Print version information on standard output then exit.
Index
- NAME
- SYNOPSIS
- DESCRIPTION
- OPTIONS
This document was created byman2html,using the manual pages.