I’m trying to prepare a few shuffled files with Linux shuf command, however, through shuf –help, it doesn’t provide any “seed” option. I wonder if there is any workaround? Thanks! Updates: thanks to the remind in the comments, I realize (1) shuf FILE produce different result each time; and (2) when –random-source are same, the produced results are same, so
Tag: shuffle
Shuffling a large text file without/with group order maintained
Instead of making a script, it there a one liner to shuffle a large tab separated text file, based on the unique elements in the first column. That means, for each unique element in the first column, number of rows will be equal and be specified by the user. There are two output possibilities, maintaining the row order or randomized