Frederik Eaton wrote:
> This is in response to a mail I found in the archive from "Wed, 25 Aug
> 2004 16:14:15 +0200" that adds an -R option to sort randomly. I've
> been seeking to add such functionality to sort for a while.

This is not really what you are asking for.  But when I need this
functionality I do it in the shell.  Here is an example.  I am not
particular about the exact type of non-ordered output.

  seq 1 20 > /tmp/datafile

  for i in $(<datafile); do echo $RANDOM $i; done \
    | sort -n | sed 's/^[0-9][0-9]* //'

A friend introduced me to that trick a few years ago and I have been
using it ever since.  $RANDOM is a ksh/bash specific feature.  It is
not POSIX but is widely available.

> 3. Is there a way to subscribe to this mailing list?

You can do it with a single line cut and paste command.

  echo subscribe | mailx -s request [EMAIL PROTECTED]

The -request part is a very important part of that command.

Bob


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to