Re: What does this 'sort' command line do?
From: Dr. Yuan LIU (yliu_at_stemnet.nf.ca.remove_this)
Date: 06/10/03
- Previous message: Kenny McCormack: "Re: What does this 'sort' command line do?"
- In reply to: Kenny McCormack: "Re: What does this 'sort' command line do?"
- Next in thread: Kenny McCormack: "Re: What does this 'sort' command line do?"
- Reply: Kenny McCormack: "Re: What does this 'sort' command line do?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 10 Jun 2003 03:32:18 GMT
Kenny McCormack wrote:
> In article <g29Fa.23$h8.243@paloalto-snr1.gtei.net>,
> Barry Margolin <barry.margolin@level3.com> wrote:
>
>>In article <bc34eu$lfo$1@yin.interaccess.com>,
>>Kenny McCormack <gazelle@interaccess.com> wrote:
>>
>>>Consider this:
>>>
>>> sort -T . -n +0.1 -0.16 +0.87 -0.92 +0.92 -0.94 +0.94 -0.96
>>>
>>>As far as I can tell, in my testing, it is a NO-OP. Please comment.
>>
>>It sorts the standard input using the following numeric keys in order of
>>priority: columns 1-15, columns 87-91, columns 92-93, finally columns
>>94-95. Since you're using old-style syntax, column numbering starts from
>>0.
>>
>>Why do you think it's a no-op?
>
>
> Experience running the above command, of course.
>
> Does the following sway your vote any:
>
> --- Cut here ---
> % cat /tmp/zzz
> the
> quick
> brown
> fox
> jumps
> over
> the
> lazy
> dog
Nope. If the data doesn't even contain that many columns, how do you
expecte it to make a difference?
Yuan Liu
> % sort +0.1 -0.10 !$
> sort +0.1 -0.10 /tmp/zzz
> lazy
> the
> the
> dog
> fox
> brown
> quick
> jumps
> over
> % ^1^0
> sort +0.0 -0.10 /tmp/zzz
> brown
> dog
> fox
> jumps
> lazy
> over
> quick
> the
> the
> %
> --- Cut here ---
- Previous message: Kenny McCormack: "Re: What does this 'sort' command line do?"
- In reply to: Kenny McCormack: "Re: What does this 'sort' command line do?"
- Next in thread: Kenny McCormack: "Re: What does this 'sort' command line do?"
- Reply: Kenny McCormack: "Re: What does this 'sort' command line do?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|