On Wed, Feb 14, 2007 at 12:10:24AM +1300, David Hall (coding) wrote:
FWIW, other similar commands:

$ printf 'rs1635242,25\nrs165179,1\n'|sort -t, -k1.3,1.99n
rs165179,1
rs1635242,25

Try:
printf 'rs1635242,1\nrs165179,25\n' | sort -t, -k1.3,1n

I think you're forcing sort to look at the 3 through 99'th character, overriding the delimeter.

Mike Stone


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to