Unix/Linux Go Back    



Sort command in one column and not effect to another column

UNIX for Dummies Questions & Answers




Kindly Note - This is a Single User Post by Forum Member GeodusT Regarding:
Sort command in one column and not effect to another column.
Please Follow The Primary Link Above to View the Full Discussion.

   
Old Unix and Linux 03-22-2013   -   Original Discussion by GeodusT
GeodusT GeodusT is offline
Registered User
 
Join Date: May 2011
Last Activity: 24 March 2013, 10:47 PM EDT
Posts: 6
Thanks: 5
Thanked 0 Times in 0 Posts
Sort command in one column and not effect to another column

If my data is numerical :


Code:
1 = 101
2 = 102
3 = 104
4 = 104
7 = 103
8 = 103
9 = 105

I need the result like below:


Code:
1 = 101
2 = 102
3 = 103
4 = 103
7 = 104
8 = 104
9 = 105


I just want to sort the data in column 3 only doesn't another column change.

How about the command I should using?

Thank you.

Last edited by radoulov; 03-22-2013 at 08:39 AM..