![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Find and replace some line | johnl | Shell Programming and Scripting | 1 | 05-22-2008 12:54 AM |
| Replace certain character with a new a new line. | djsal | Shell Programming and Scripting | 8 | 01-11-2008 08:59 AM |
| search and replace the whole line | Jartan | Shell Programming and Scripting | 17 | 09-25-2007 10:58 AM |
| Need to replace the first word of a line if it occurs again in the next line(shell) | geeko | Shell Programming and Scripting | 1 | 09-25-2007 07:15 AM |
| sed - Replace Line which contains the Pattern match with a new line | kousikan | Shell Programming and Scripting | 2 | 03-24-2007 03:24 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
How to replace one line with three in sed
Hi,
I have a problem. I want to use SED to replace one line with three It looks like: PARAM='first_line,second_line,third_line' And in file: blablabla blablabla PARAM blablabla blablabla blablabla All I want is to change this into: blablabla blablabla first_line second_line third_line blablabla blablabla blablabla |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
....... blablabla first_linensecond_linenthird_line blablabla .......... Thx for awk scripts but this is a part of bigger program and I have to use SED |
| Thread Tools | |
| Display Modes | |
|
|