paste

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunPaste

func RunPaste(w io.Writer, r io.Reader, args []string, opts PasteOptions) error

RunPaste merges lines of files r is the default input reader (used when args is empty or contains "-")

Types

type PasteOptions

type PasteOptions struct {
	Delimiters string // -d: use characters from LIST instead of TABs
	Serial     bool   // -s: paste one file at a time instead of in parallel
	Zero       bool   // -z: line delimiter is NUL, not newline
}

PasteOptions configures the paste command behavior

Jump to

Keyboard shortcuts

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