Re: Bug in sort?? using the C character offset in the second column...

2005-04-14 Thread Andreas Schwab
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

Re: Bug in sort?? using the C character offset in the second column...

2005-04-14 Thread Philip Rowlands
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

Bug in sort?? using the C character offset in the second column...

2005-04-14 Thread Neville [EMAIL PROTECTED]
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