d**s 发帖数: 920 | 1 如何 randomize 一个sorted的文件 ?
有没有现成的 Unix command or utility ?
For example, I have a sorted file, it has entry:
abc
abd
zzy
zzz
(It is a result of unix sorting output).
Is there a unix command or utility to randomize lines in the file ?
Thanks. | c*****t 发帖数: 1879 | 2 sort by 2nd or 3rd character :)
【在 d**s 的大作中提到】 : 如何 randomize 一个sorted的文件 ? : 有没有现成的 Unix command or utility ? : For example, I have a sorted file, it has entry: : abc : abd : zzy : zzz : (It is a result of unix sorting output). : Is there a unix command or utility to randomize lines in the file ? : Thanks.
| w***g 发帖数: 5958 | 3 shuf
【在 d**s 的大作中提到】 : 如何 randomize 一个sorted的文件 ? : 有没有现成的 Unix command or utility ? : For example, I have a sorted file, it has entry: : abc : abd : zzy : zzz : (It is a result of unix sorting output). : Is there a unix command or utility to randomize lines in the file ? : Thanks.
|
|