[ale] sort key help request

Dow Hurst dhurst at kennesaw.edu
Thu Apr 1 11:21:07 EST 2004


I used sed to switch to ! from tabs.  I'd still like to know how to define a 
tab as the sort key.
Dow


Dow Hurst wrote:
> I have a tab delimited file I want to sort on the second and eighth fields.
> 
> sort -t \t -k 2b,2 -k 8,8 inputfile > outputfile
> 
> is what I have tried.  Doesn't work and I think the \t is what is wrong 
> but aren't sure.  How do I specify a tab character as the delimiter?
> 
> Thanks,
> Dow
> 

-- 
__________________________________________________________
Dow Hurst                  Office: 770-499-3428            *
Systems Support Specialist    Fax: 770-423-6744            *
1000 Chastain Rd. Bldg. 12                                 *
Chemistry Department SC428  Email:   dhurst at kennesaw.edu   *
Kennesaw State University         Dow.Hurst at mindspring.com *
Kennesaw, GA 30144                                         *
************************************************************
This message (including any attachments) contains          *
confidential information intended for a specific individual*
and purpose, and is protected by law.  If you are not the  *
intended recipient, you should delete this message and are *
hereby notified that any disclosure, copying, distribution *
of this message, or the taking of any action based on it,  *
is strictly prohibited.                                    *
************************************************************



More information about the Ale mailing list