Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Head ¶
Head returns a Command that outputs the leading prefix of its input.
Flags:
- HeadLines (-n): emit the first N lines (default: 10).
- HeadBytes (-c): emit the first N bytes; collects the input, joins lines with newlines, truncates to N bytes, and emits the result as a line-oriented stream (one value per line, the newlines stripped).
HeadBytes takes precedence over HeadLines when set to a positive count.
Types ¶
Click to show internal directories.
Click to hide internal directories.