![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sort on multiple keys | teqmem | UNIX for Advanced & Expert Users | 1 | 04-12-2007 10:15 PM |
| Hot Keys | cwtlr | Shell Programming and Scripting | 8 | 12-14-2006 09:07 AM |
| Hot Keys | cwtlr | UNIX for Dummies Questions & Answers | 2 | 12-01-2006 09:50 AM |
| SSH Keys Help | sysera | UNIX for Advanced & Expert Users | 1 | 08-09-2004 11:57 PM |
| arrow keys / special keys | raguramtgr | UNIX for Dummies Questions & Answers | 3 | 02-19-2004 10:45 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
The -k4,4n -k5,5r first sorts numerically on the fourth field and then sorts on the fifth field in reverse order. The 5th field sort is a sub-sort that is it sorts the 5th field based on the sorted contents of the 4th field.The comma in -k separates the start and stop fields. In -k5r the start field is the 5th one and as no stop field is given it defaults to the end of the line. The sort manpage provides a better explanation.
|
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
English is my first language, man help is my fifth !! Many Thanks Colin |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | |
| Display Modes | |
|
|