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

Stuart Woodward picture Stuart Woodward · May 20, 2009 · Viewed 76.7k times · Source

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.

Answer

Jim T picture Jim T · May 20, 2009

Um, lets not forget

sort --random-sort