| Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free! |
Delete Second Occurance of Pattern
|
Original Message
|
Name: KSHnewbie
Date: September 6, 2006 at 07:41:38 Pacific
Subject: Delete Second Occurance of PatternOS: win2003CPU/Ram: n/aManufacturer/Model: n/a |
Comment: Hi, I would like to know how to delete the second occurance of a pattern. For example, the pattern is: 1. First line 2. Some other sentence 3. Another couple of words After finding pattern 1, I want to delete pattern 1, 2, and 3. I can easily substitute a space after finding pattern 1 and 2. My problem is that there are other patterns that are the same as pattern 3. I want to delete only the second occurance of pattern 3.
Report Offensive Message For Removal
|

Post Locked
This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
Go to Unix Forum Home