![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Threads and Threads Count ? | varungupta | UNIX for Advanced & Expert Users | 2 | 03-21-2008 09:23 PM |
| How many threads do I use ? | the_learner | UNIX for Advanced & Expert Users | 5 | 07-17-2007 05:31 PM |
| threads | vijlak | SUN Solaris | 3 | 01-29-2007 07:55 PM |
| old threads | norsk hedensk | Post Here to Contact Site Administrators and Moderators | 2 | 06-03-2003 05:16 PM |
| nfs threads | i2admin | UNIX for Advanced & Expert Users | 1 | 03-06-2003 11:28 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 12:21 PM.. |
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|