![]() |
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 |
| Sorting : | satyam_sat | Shell Programming and Scripting | 3 | 04-15-2008 12:30 PM |
| Sorting in C++.. | ronix007 | High Level Programming | 6 | 03-06-2008 05:16 PM |
| sorting in awk | mahabunta | Shell Programming and Scripting | 3 | 01-31-2007 01:56 AM |
| awk sorting | Jaken | Shell Programming and Scripting | 4 | 05-21-2006 09:54 AM |
| Sorting mp3 | penguin-friend | Shell Programming and Scripting | 3 | 05-13-2005 03:21 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Need immediate help with sorting!!!
hey,
I have a file that looks smthng like this: /*--- abcd_0050 ---*/ asdfjk adsfkja lkjljgafsd /*---abcd_0005 ---*/ lkjkljbfkgj ldfksjgf dfkgfjb /*-- abcd_0055--*/ klhfdghd dflkjgd jfdg I would like it to be sorted so that it looks like this: /*---abcd_0005 ---*/ lkjkljbfkgj ldfksjgf dfkgfjb /*--- abcd_0050 ---*/ asdfjk adsfkja lkjljgafsd /*-- abcd_0055--*/ klhfdghd dflkjgd jfdg Basically, it sorts according to the numbers in the comment lines. What commands do I execute in the shell to get this? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|