View Single Post
  #2   (View Single Post)  
Old 20th March 2009
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by gosha View Post
How do I tell sort to put "ลก" just after "s" and not at the end after "z"?
According to the manpage for sort(1), it only sorts lexicographically. The only other knob is to ignore case.
Quote:
Or is there a better way than using sort?
Use awk(1), perl(1), or some other scripting language which will allow writing your own custom sorting routine.

The standard tools allow for standard usage. Anything beyond this is better done through more sophisticated options.
Reply With Quote