![]() |
|
|
|
|
|||||||
| 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Threads and Threads Count ? | varungupta | UNIX for Advanced & Expert Users | 2 | 03-21-2008 05:23 PM |
| How many threads do I use ? | the_learner | UNIX for Advanced & Expert Users | 5 | 07-17-2007 02:31 PM |
| threads | vijlak | SUN Solaris | 3 | 01-29-2007 03:55 PM |
| old threads | norsk hedensk | Post Here to Contact Site Administrators and Moderators | 2 | 06-03-2003 02:16 PM |
| nfs threads | i2admin | UNIX for Advanced & Expert Users | 1 | 03-06-2003 07:28 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
sorting columns
i am tring to sort lots of data thats in many columns by just one column but, if I use sort +16 inputfile the column fluctuates because some of the rows have spaces etc within the text, so the end result is just a mess as it jumps around the columns depending whether it has spaces or not ....ie post codes some have spaces and others don't......any solutions
Last edited by Gerry405; 06-28-2005 at 09:21 AM. |
| Forum Sponsor | ||
|
|
|
|||
|
You are saying the fields in the file are space delimited - there are spaces between each field, but the fileds themselves vary in size.
Assume you want to sort on the fifth field - Code:
sort -k 5 filename > outputfilename |
| Thread Tools | |
| Display Modes | |
|
|