![]() |
|
|
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. |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Sed question
I have never used sed to search and replace on a pattern that is over multiple lines and am a little confused on how I tell sed to look at the next line, if I can. For example, I am searching for this:
static void c0000_ietexit(void) { When that is found I want to add this line. int processReturnCode = 0; I just am not sure how to tell the search to look at the next line and then inturn pass that back to the replace. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|