[ale] sort key help request

Chris Coleman ChrisColeman at mail.clayton.edu
Thu Apr 1 14:01:40 EST 2004


Sort appears to default to tabs and spaces. I created a sample file that was tab delimited. All I used on the command line was "sort +2 test"  and it worked.  
 
Chris

	-----Original Message----- 
	From: Geoffrey [mailto:esoteric at 3times25.net] 
	Sent: Thu 4/1/2004 12:18 PM 
	To: Atlanta Linux Enthusiasts 
	Cc: 
	Subject: Re: [ale] sort key help request
	
	

	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?
	
	--field-separator='     '
	
	Where you actually enter the tab key betwen the quotes.
	
	>
	> Thanks,
	> Dow
	>
	
	
	--
	Until later, Geoffrey                     Registered Linux User #108567
	Building secure systems in spite of Microsoft
	_______________________________________________
	Ale mailing list
	Ale at ale.org
	http://www.ale.org/mailman/listinfo/ale
	

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 4530 bytes
Desc: not available




More information about the Ale mailing list