![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sed find matching pattern delete next line | aveitas | Shell Programming and Scripting | 2 | 12-22-2008 01:54 PM |
| delete a line that does not match the pattern | Satyak | Shell Programming and Scripting | 3 | 10-14-2008 06:18 AM |
| 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:
W/D FRM CHK 00 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 |
|
|