![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 11:25 AM |
| the sort command | wickbc | UNIX for Dummies Questions & Answers | 0 | 11-08-2007 03:30 PM |
| Sort command... | Indalecio | Shell Programming and Scripting | 5 | 06-25-2007 06:40 AM |
| SORT COMMAND help | ndoggy020 | UNIX for Dummies Questions & Answers | 2 | 06-05-2007 02:45 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
hi,
In UNIX I want a sort records in a file based on the certain position in the record as the key in the file. Now if certain 2 records have the same record then the out file should have the records as the First in First out i.e. in the same order in which they occur in the input file. Say for e.g. There are records in the input file 12345555555555677689870987 12345 12343 And I sort it based on the the keys 1-4 so then as per the sort I need Output file 1234555555555555555 12345 12343 but the output I get is something like this 12343 12345 12445555555555555 i.e. it gets soreted on the next one records also if the key is the same which I don’t want it to happen. Could someone please let me know if this is possible using the sort command in UNIX or any other way to do it. Thanks Aman. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|