The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
column number, awk, help jkl_jkl Shell Programming and Scripting 2 03-15-2008 07:16 PM
Sorting a column in this scenario krishnan_6015@y Shell Programming and Scripting 1 11-27-2007 06:34 AM
Identifying the column number pondlife Shell Programming and Scripting 2 09-28-2007 07:43 AM
returning a column number scriptingmani Shell Programming and Scripting 2 07-06-2007 06:36 PM
awk to select a column from particular line number mab_arif16 Shell Programming and Scripting 4 05-08-2006 02:26 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-15-2007
Registered User
 

Join Date: Feb 2007
Posts: 21
Lightbulb Sorting in unix using column number

Hi All,

Can anyone tell me how to sort data in a file using the “sort” command? Note that the records in the data file are not separated into fields. I know only the column positions of the data on which sorting should be done. For example say I’ve to sort based on the data present in between column positions 152-165
Reply With Quote
Forum Sponsor
  #2  
Old 11-15-2007
Moderator
 

Join Date: Dec 2003
Location: /dev/fl
Posts: 1,061
sort -k 1.152,1.165
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:55 AM.


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