![]() |
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 |
| 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 |
| How to sort a field in a file having date values | risshanth | Shell Programming and Scripting | 4 | 06-04-2008 05:03 AM |
| Remove lines, Sorted with Time based columns using AWK & SORT | karthikn7974 | Shell Programming and Scripting | 1 | 05-09-2008 11:04 PM |
| How to sort alphabetically after finding values | doubleminus | UNIX for Dummies Questions & Answers | 4 | 04-28-2008 06:45 AM |
| How to sort decimal values in bash | ahjiefreak | Shell Programming and Scripting | 1 | 01-21-2008 09:25 AM |
| sort mail based on subject in unix. | sriram.s | Shell Programming and Scripting | 2 | 02-02-2007 07:38 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to Sort files based on predefined values.?
How to Sort files based on predefined values.?
Normally Sorting happens for the alphabetic or numberic orders.. Is there any way to sort a fields based on the Field values..? Field10 has : one two three five four six ten seven eight nine. in predefined order { one, two, three, four, five, six, seven, eight, nine, ten} I need in Unix Script. Thanks in Advance. |
|
||||
|
you can use awk.
you can use perl. we are not here to do the work for you. all you really need to do is get that field in the front of your line and then sort it out. Last edited by Optimus_P; 02-17-2004 at 11:06 AM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|