![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sorting based on Multiple columns | dharmesht | Shell Programming and Scripting | 15 | 05-13-2009 11:44 AM |
| Sorting based on columns | MobileUser | Shell Programming and Scripting | 7 | 04-11-2007 03:03 PM |
| sorting data based on multi columns | sumeet | UNIX for Advanced & Expert Users | 2 | 02-15-2007 12:57 PM |
| sorting file content on columns | marshmallow | UNIX for Dummies Questions & Answers | 2 | 01-04-2007 12:10 PM |
| sorting a file with multiple columns | outtacontrol | UNIX for Dummies Questions & Answers | 3 | 07-26-2006 02:51 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
sorting file based on two or more columns
Hi gang. I'm using a unix/mac system and i'm trying to sort a file (more than 1,000,000 lines). Code:
chr1 100000965 100001001 - chr1 100002155 100002191 + chr1 100002165 100002201 + chr1 100002525 100002561 - chr1 10000364 10000400 - chr1 10000372 10000408 - chr1 10000412 10000448 + chr1 100004742 100004778 - chr1 100004767 100004803 + I want to sort the first column (text and it could be any of 24 chrom) and then sort by 4th column and then by 2nd column. I tried sort command but when i type in sort +3 +1, it doesn't work. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|