Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Nl ¶
Nl numbers lines from stdin.
Flags:
- NlBodyAll, NlBodyNonEmpty, NlBodyNone (-b): which lines to number (default: all)
- NlSep(s) (-s): separator between number and line (default: "\t")
- NlStart(n) (-v): starting line number (default: 1)
- NlIncrement(n) (-i): line number increment (default: 1)
- NlWidth(n) (-w): field width for line numbers (default: 6)
- NlFormat(f) / NlFormatLN / NlFormatRN / NlFormatRZ (-n): number format (default: rn)
Types ¶
type NlBody ¶
type NlBody string
NlBody selects which lines are numbered. Maps to the -b flag: "a" (all, default), "t" (non-empty only), "n" (none).
type NlFormat ¶
type NlFormat string
NlFormat sets the line-number format (-n flag). Valid values: "ln" (left justified), "rn" (right justified, default), "rz" (right justified zero-padded).
type NlIncrement ¶
type NlIncrement int
NlIncrement sets the line-number increment (-i flag, default 1).
Click to show internal directories.
Click to hide internal directories.