bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature-Request: random sort


From: Eric Blake
Subject: Re: Feature-Request: random sort
Date: Wed, 15 Nov 2006 19:59:44 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Matthias Schniedermeyer on 11/15/2006 10:56 AM:
> 
> As far as i can see it the opposite of sort is missing.

Yes, this capability was missing in earlier versions of coreutils.

> Randomize/shuffling the incoming data lines, so you can e.x. use it for
> a playlist.
> 
> find . -type f | sort --shuffle | xargs <...>

Try upgrading.  Coreutils 6.4 comes with the shuf utility, so that you can do:

find . -type f | shuf | xargs <...>

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFW9Qg84KuGfSFAYARAuHlAKCht15XvlZEXEv6MGHydeZhcmLBPQCg1FXp
xPcVgWaVKCdX+pOYbMf09iI=
=5s2A
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]