Documentation
¶
Overview ¶
Package split implements the GNU split utility.
It writes pieces of the input file to files named after a prefix and a suffix ("xaa", "xab", ... by default; digits or hexadecimal digits with -d or -x), either by line count, by byte count, by complete lines per size, or by a number of chunks. The --filter and --separator options of the GNU manual are not supported, and the suffix length doesn't grow automatically when the suffixes run out.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Prog ¶
Prog is the split core utility.
func (*Prog) Run ¶
Run reads the input file and writes its pieces, returning an exit status of 2 for invalid usage and 1 for any processing error. The k/n forms of -n write their chunk to the standard output instead of to a file.
Reading is interrupted when ctx is done, and the context error is returned.