由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 如何 randomize 一个sorted的文件 ?
相关主题
underlying sort algorithm for SET in STL?如何让python dictionary sorting 的速度变得很快?
an interview questionHow to sort a map in C++ STL based on Value, instead of Key
什么时候该用什么sort算法这个同学很神
今天电面又被老印黑了。。。。 (转载)请大虾验证!
A STL sorting algorithm problem我写的quick sort
问一个基本问题can somebody help me with average running time of insertion sort?
如何sort and merge n 个sorted linked list一个java class downcast 的问题
嵌入式系统用什么sorting算法比较好?修改map的键值
相关话题的讨论汇总
话题: randomize话题: sorted话题: unix话题: 文件话题: command
进入Programming版参与讨论
1 (共1页)
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.

1 (共1页)
进入Programming版参与讨论
相关主题
修改map的键值A STL sorting algorithm problem
ebook wanted, thanks问一个基本问题
关于在rotated sorted array中查找的问题如何sort and merge n 个sorted linked list
为什么不能成功排序嵌入式系统用什么sorting算法比较好?
underlying sort algorithm for SET in STL?如何让python dictionary sorting 的速度变得很快?
an interview questionHow to sort a map in C++ STL based on Value, instead of Key
什么时候该用什么sort算法这个同学很神
今天电面又被老印黑了。。。。 (转载)请大虾验证!
相关话题的讨论汇总
话题: randomize话题: sorted话题: unix话题: 文件话题: command