bug-coreutils
[Top][All Lists]
Advanced

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

Re: Suggestion for 'sort' command


From: Eric Blake
Subject: Re: Suggestion for 'sort' command
Date: Wed, 15 Feb 2006 06:18:41 -0700
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

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

According to Antonio Jara on 2/14/2006 11:06 AM:
> i'm not (yet) a developer. I'd like to be able to implementate this
> idea, but I've looked into sort.c and I felt completely lost. It would
> be nice that sort had an option to sort randomly the input, to do, for
> example, things like
> $ mplayer `ls music/* | sort --random`
> from console.

This already exists in CVS head (will become coreutils 6.0):

$ sort --version | head -n 1
sort (GNU coreutils) 6.0-cvs
$ sort --help | grep random
  -R, --random-sort           sort by random hash of keys
      --seed=STRING         seed random hash function with STRING

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

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

iD8DBQFD8yox84KuGfSFAYARAltZAJ9ZPnS5KDgnpr3m+BEn4Zo2dDqxewCgjIIV
d9yN0iJf/CGh8Rx/Se9J2b4=
=Nyx0
-----END PGP SIGNATURE-----




reply via email to

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