|
Home > Archive > Unix Shell > November 2006 > sort +0nr ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| Hi all!
I came in an old script across 'sort +0nr' This seems to be no longer
correct syntax for sort. How do I rewrite it?
Regards,
Evert
| |
|
| Evert wrote:
> Hi all!
>
> I came in an old script across 'sort +0nr' This seems to be no longer
> correct syntax for sort. How do I rewrite it?
Frankly, your posting shocked me. I've immediately tried with GNU sort
on Cygwin, and that's indeed the case! While sort +1nr still works,
as it seems. When has that changed?
I can't say what's the (new?) standard way, but plain sort -nr seems
to do what you expect.
Janis
>
>
> Regards,
> Evert
| |
|
| Hi
This command will work now also .
sort
+0 n ===> column no. to be sorted -1
r ====> Reverse sort.
Thanks,
Swami
--------------------------------
Evert wrote:
> Hi all!
>
> I came in an old script across 'sort +0nr' This seems to be no longer
> correct syntax for sort. How do I rewrite it?
>
>
> Regards,
> Evert
| |
|
| But that's what I started out with... '+0nr' does not work... Neither
does '+0 nr'
Regards,
Evert
On Nov 24, 11:12 am, "swami" <sivaswamim...@gmail.com> wrote:[vbcol=seagreen]
> Hi
> This command will work now also .
> sort
>
> +0 n ===> column no. to be sorted -1
> r ====> Reverse sort.
>
> Thanks,
> Swami
> --------------------------------
>
> Evert wrote:
>
>
| |
|
| what is the Os you are using ?
please try whether the sort program is present /usr/bin/sort
Thanks,
swami
Evert wrote:[vbcol=seagreen]
> But that's what I started out with... '+0nr' does not work... Neither
> does '+0 nr'
>
> Regards,
> Evert
>
> On Nov 24, 11:12 am, "swami" <sivaswamim...@gmail.com> wrote:
| |
| Dave Gibson 2006-11-25, 1:16 pm |
| Evert <evert@meulie.net> wrote:
> Hi all!
>
> I came in an old script across 'sort +0nr' This seems to be no longer
> correct syntax for sort. How do I rewrite it?
sort -k 1nr
|
|
|
|
|