![]() |
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 |
| find pattern delete line with pattern and line above and line below | nickg | UNIX for Dummies Questions & Answers | 1 | 01-28-2009 06:46 PM |
| sed find matching pattern delete next line | aveitas | Shell Programming and Scripting | 2 | 12-22-2008 01:54 PM |
| comment/delete a particular pattern starting from second line of the matching pattern | imas | Shell Programming and Scripting | 4 | 10-13-2008 02:37 AM |
| Urgent Help required : awk/sed help to find pattern and delete till end of line | rajan_san | UNIX for Advanced & Expert Users | 1 | 08-25-2008 05:18 PM |
| Urgent! Sed/Awk Filter Find Pattern Delete Till End Of Line | rajan_san | Shell Programming and Scripting | 2 | 08-25-2008 04:53 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
find pattern, delete line with pattern and line above and line below
I have a file that will sometimes contain a pattern. The pattern is this:
FRM CHK 0000 I want to find any lines with this pattern, delete those lines, and also delete the line above and the line below. |
![]() |
| Bookmarks |
| Tags |
| sed delete line |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|