Forrest logo
back to context overview

shuf

List of commands for shuf:

  • shuf:tldr:5f813 shuf: Write the output to another file.
    $ shuf ${path-to-input} --output=${path-to-output}
    try on your machine
    explain this command
  • shuf:tldr:60beb shuf: Generate random numbers in range 1-10.
    $ shuf --input-range=${1-10}
    try on your machine
    explain this command
  • shuf:tldr:6821d shuf: Only output the first 5 entries of the result.
    $ shuf --head-count=${5} ${filename}
    try on your machine
    explain this command
  • shuf:tldr:837f4 shuf: Generate 3 random numbers in the range 1-10 (inclusive).
    $ shuf --head-count=${3} --input-range=${1-10} --repeat
    try on your machine
    explain this command
  • shuf:tldr:d42e4 shuf: Randomize the order of lines in a file and output the result.
    $ shuf ${filename}
    try on your machine
    explain this command
back to context overview