Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Shuf ¶
Shuf returns a command that randomly shuffles input lines.
- ShufCount(n) (-n): cap the output at n lines.
- ShufSeed(s) (--seed): deterministic output from a fixed seed.
- ShufRange(lo, hi) (-i): shuffle the integers lo..hi instead of stdin.
- ShufEcho(args...) (-e): shuffle the given arguments instead of stdin.
Types ¶
type ShufEchoArgs ¶
type ShufEchoArgs struct {
// contains filtered or unexported fields
}
ShufEchoArgs is the -e option value: the argument lines to shuffle instead of stdin. Build it with ShufEcho.
func ShufEcho ¶
func ShufEcho(args ...ShufLine) ShufEchoArgs
ShufEcho treats the given arguments as input lines to shuffle (-e flag).
type ShufLine ¶
type ShufLine string
ShufLine is one input line supplied as a command argument (-e flag).
type ShufRangeSpec ¶
type ShufRangeSpec struct {
// contains filtered or unexported fields
}
ShufRangeSpec is the -i option value: shuffle the integers of an inclusive range instead of stdin. Build it with ShufRange.
func ShufRange ¶
func ShufRange(lo, hi ShufBound) ShufRangeSpec
ShufRange generates integers from lo to hi (inclusive), shuffled (-i flag).
Click to show internal directories.
Click to hide internal directories.