Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sort with tab field-separator?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pk1
n00b
n00b


Joined: 11 Jan 2004
Posts: 24

PostPosted: Tue Nov 14, 2006 8:09 pm    Post subject: sort with tab field-separator? Reply with quote

I can't seem to get sort to use tab as a field separator. I know this should be fairly simple, but nothing seems to work!

I have tried sort -t\t, sort -t"\t", etc. and they either complain about "multi-character tab" or just fail to sort appropriately. I even tried entering CTRL-V,CTRL-T. Any ideas?

Thanks!
Back to top
View user's profile Send private message
pk1
n00b
n00b


Joined: 11 Jan 2004
Posts: 24

PostPosted: Tue Nov 14, 2006 8:17 pm    Post subject: Reply with quote

looks like sort -t$'\t' works. Not sure why.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum