split

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunSplit

func RunSplit(w io.Writer, args []string, opts SplitOptions) error

RunSplit splits a file into pieces

Types

type SplitOptions

type SplitOptions struct {
	Lines       int    // -l: put NUMBER lines per output file
	Bytes       string // -b: put SIZE bytes per output file
	Number      int    // -n: generate N output files
	Suffix      int    // -a: generate suffixes of length N (default 2)
	NumericSufx bool   // -d: use numeric suffixes
	Verbose     bool   // --verbose: print diagnostic
}

SplitOptions configures the split command behavior

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL