Linux command-line: Using the 'shuf' command to pick random lines from an input-stream
The GNU coreutils package (available by default of most linux distros) comes bundled with the ‘shuf’ command which works as the exact opposite of the ‘sort’ command. It is a filter than can be used to shuffle/randomize input streams.
This video will teach you how to use this command to shuffle lines from a file and command’s output and also to pick random lines from a command’s output.
Views : 19
linux