Forrest logo
back to the shuf tool

shuf:tldr:5f813

shuf: Write the output to another file.
$ shuf ${path-to-input} --output=${path-to-output}
try on your machine

The command "shuf" is used to generate random permutations of input lines. Here's how the different parts of the command work:

  • "${path-to-input}" is the placeholder for the path or filename of the input file. You need to replace it with the actual path to your input file. This file should contain the lines of text that you want to randomize.

  • "--output=${path-to-output}" specifies the output file where the randomized lines will be written. Again, you need to replace "${path-to-output}" with the actual path or filename you want for your output file.

So, when you run the command "shuf ${path-to-input} --output=${path-to-output}", it will take the lines from the input file, randomly shuffle them, and then write the randomized lines into the output file.

Make sure to replace "${path-to-input}" and "${path-to-output}" with the real paths or filenames in your case.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the shuf tool