Linux / UNIX Tech Support Forum
This is a discussion on How to delete only certain lines within the Shell scripting forums, part of the Development/Scripting category; I have a file where a short line with one field (e.g. Mcol2208 is followed either by one or more ...
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I have a file where a short line with one field (e.g. Mcol2208
Mcol2208: 51 202_927 Mcol2208 Mcol3898 0.0003 3.91e-03 202 927 726 388 2 26 146 582_1040 Mcol2208 Mcol_DAI 0.0172 3.07e-02 582 1040 459 224 8 82 Mcol2210: Mcol3898: Mcol474: 3 1_530 PhoG2-68 Mcol474 0.0023 1.84e-02 1 530 530 299 1 24 31 135_678 Mcol474 Pho_3590 0.0136 4.67e-02 135 678 544 315 2 25 32 135_703 PhoI1-5 Mcol474 0.0000 1.13e-03 135 703 569 326 0 25 Mcol475: 11 48_503 Mcol475 PhoV52 0.0476 1.35e-01 48 503 456 260 0 13 Help will be greatly appreciated. |
| Sponsored Links | ||
|
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell Delete Directory | chimu | Slackware | 2 | 31-05-2008 03:36 PM |
| How to print some lines from a file | Prahlad | Shell scripting | 3 | 23-04-2008 11:25 PM |
| Script to display number of lines and words from a file | newbewie | Shell scripting | 2 | 07-12-2007 10:37 PM |
| Calculations across different lines & columns of a file | Guest | Shell scripting | 2 | 16-09-2005 04:18 AM |
| using sed to delete everything except needed patterns | guest | Shell scripting | 8 | 12-09-2005 02:57 AM |