On 5/1/06, Robert Citek <[EMAIL PROTECTED]> wrote: > > Is this a bug in 'sort'?
I think not. > # numerical sort -- identical to one-column sort except the key has > been incremented by one > # 'sort' does not sort numerically as expected > [5] $ echo -e 'x\tfig17\nx\tfig2' | sort -k 2.4n > x fig17 > x fig2 > The problem here robert s that sort is confused by the fields. That is x\tfig2 has to become x\tfig02. Here I use the sort on 02. $ print 'x\tfig17\nx\tfig02\nx\tfig19\n' | sort -k 2.4,2.5 x fig02 x fig17 x fig19 I believe that when it tries to sort fig2 it interperts the next "field" as a white space. -- Kind regards, Jonathan _______________________________________________ CWE-LUG mailing list [email protected] http://www.cwelug.org/ http://www.cwelug.org/archives/ http://www.cwelug.org/mailinglist/
