Linux – How to randomize the lines in a file using standard tools on Red Hat Linux

filelinuxrandomredhatshuffle

How can I randomize the lines in a file using standard tools on Red Hat Linux?

I don't have the shuf command, so I am looking for something like a perl or awk one-liner that accomplishes the same task.

Best Solution

Um, lets not forget

sort --random-sort