better implementation of command line randomization with Ruby -


Enter the code here This is a liner to make STDIN random, its target list Feeding is a huge list of files and tail-ns (N anyway big) reminds you of random:

  ruby-e 'arr = []; ARGF.H {| Line | AIR & lt; & Lt; Line};   

I'm thinking at least the version is

The winner is:

  find-type F | How about: 

  puts Ruby-E Is ARGF.sort_by {rand} '   

Comments