Philip Rowlands <[EMAIL PROTECTED]> writes:
> This works:
> $ echo "= =Apr,= =Mar,= =May" | tr "," "\012" | sort -k 2.3,2.5M
Or this:
$ echo "= =Apr,= =Mar,= =May" | tr "," "\012" | sort -k 2.2b,2.4M
Andreas.
--
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux Products GmbH, Maxfeldstra
On Thu, 14 Apr 2005, Neville [EMAIL PROTECTED] wrote:
>$ echo "= =Apr,= =Mar,= =May" | tr "," "\012" | sort -k 2.2,2.5M
>= =Apr
>= =Mar
>= =May
The field does not start where you think; quoting 'info sort':
> By default, fields are separated by the empty string between a
> non-blank character an
Hi...
$ echo "= =Apr,= =Mar,= =May" | tr "," "\012" | sort -k 2.2,2.5M
= =Apr
= =Mar
= =May
$ echo "= Apr,= Mar,= May" | tr "," "\012"| sort -k 2.2,2.4M
= Mar
= Apr
= May
Looks like the offset is just getting ignored