[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Makes sort create random order
From: |
Frederik Eaton |
Subject: |
Re: [PATCH] Makes sort create random order |
Date: |
Sat, 29 Jan 2005 04:50:27 -0800 |
User-agent: |
Mutt/1.5.6+20040907i |
Oh, I forgot to respond.
> 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.
Knowing about $RANDOM is useful, thanks.
> > 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 address@hidden
>
> The -request part is a very important part of that command.
Thanks.
--
----------------------------------------------------------------
Frederik Eaton http://ofb.net/~frederik/
- Re: [PATCH] Makes sort create random order, (continued)
- Re: [PATCH] Makes sort create random order, Paul Eggert, 2005/01/27
- Re: [PATCH] Makes sort create random order, Frederik Eaton, 2005/01/28
- Re: [PATCH] Makes sort create random order, Paul Eggert, 2005/01/28
- Re: [PATCH] Makes sort create random order, Frederik Eaton, 2005/01/28
- Re: [PATCH] Makes sort create random order, Paul Eggert, 2005/01/29
- Re: [PATCH] Makes sort create random order, Frederik Eaton, 2005/01/29
- Re: [PATCH] Makes sort create random order, Paul Eggert, 2005/01/31
- Re: [PATCH] Makes sort create random order, James Youngman, 2005/01/29
- Re: [PATCH] Makes sort create random order, Frederik Eaton, 2005/01/30
Re: [PATCH] Makes sort create random order, Bob Proulx, 2005/01/28