The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sort command naamas03 UNIX for Dummies Questions & Answers 2 11-11-2007 08:25 AM
the sort command wickbc UNIX for Dummies Questions & Answers 0 11-08-2007 12:30 PM
Sort command... Indalecio Shell Programming and Scripting 5 06-25-2007 02:40 AM
help for 'sort' command ganapati UNIX for Advanced & Expert Users 5 12-21-2006 11:30 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-05-2007
Registered User
 

Join Date: Apr 2007
Posts: 24
SORT COMMAND help

Hey guys.

I am trying to Sort a pretty big file just in ascending order. Nothing as specific as size, name, numeric etc. The current code I have so far is:

sort -k 1.1,1.17 <filename> -o <filename>

That command above just seems to be rearranging the fields I am trying to sort. Any thoughts on this? Do I need to denote a size specification or anything like that?

Thanks for any help.
Reply With Quote
Forum Sponsor
  #2  
Old 06-05-2007
Registered User
 

Join Date: Mar 2007
Location: Chennai
Posts: 222
Hi,
Please provide us the sample input & output file,so that we can get a clear picture.

Thanks
Nagarajan Ganesan
Reply With Quote
  #3  
Old 06-05-2007
Registered User
 

Join Date: Apr 2007
Posts: 24
sort -k 1.1,1.17 $DC_abc/xyz_split.dat -o $DC_abc/xyz_split_sort.dat
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:00 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0