bsplit(1) CLIX bsplit(1)
NAME
bsplit - Splits a file into pieces
SYNOPSIS
bsplit [-p prefix] [-s suffix] [-b bytes] [-v] file
FLAGS
-b bytes
Specifies the number of bytes for each output file. The default
value is 512000 bytes.
-p prefix
Specifies the prefix to be used for each piece. The default value
is part.
-s suffix
Specifies the suffix to be used for each piece. The default is no
suffix.
-v Sets verbose mode.
DESCRIPTION
The bsplit command reads file, and writes it in n-byte pieces (default
512000 bytes) onto a set of output files. The name of the first output
file is part with 00 appended, and so on lexicographically, up to 99 (a
maximum of 100 files). The prefix argument cannot be longer than 12
characters with no suffix defined. If no prefix is given, part is the
default.
If no input file is given, or if - is given in its stead, then stdin is
used.
The output filenames are of the form [prefix]NN[suffix], where NN is the
sequence number (00, 01, an so on). Keying in the cat prefix* command
reconstructs the original file.
EXAMPLES
This example takes the /usr/adm/accounting.dat and splits it into several
4000-byte files. Each file begins with the prefix acct:
bsplit -p acct -b 400 /usr/adm/accounting.dat
DIAGNOSTICS
cannot open input
2/94 - Intergraph Corporation 1
bsplit(1) CLIX bsplit(1)
The bsplit command is unable to access the input file.
too many output files
More than 100 files are needed to split the input file at the
specified byte size.
EXIT VALUES
The bsplit command exits with a non-zero value when it fails.
RELATED INFORMATION
Commands: split(1)
2 Intergraph Corporation - 2/94