![]() |
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 |
| return the previous line | user_prady | Shell Programming and Scripting | 12 | 12-18-2007 07:37 AM |
| how to go previous line in vim | useless79 | UNIX for Advanced & Expert Users | 2 | 09-16-2007 08:10 AM |
| replace [previous] line | grossgermany | Shell Programming and Scripting | 10 | 07-29-2007 09:40 AM |
| repeating previous argument on command line? | hadarot | UNIX for Dummies Questions & Answers | 6 | 08-01-2005 02:41 AM |
| merging 2 files starting at the n'th line of the first file | olga | Shell Programming and Scripting | 2 | 05-30-2005 10:55 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Merging previous line using sed
I've been trying to merge a previous line when I find a pattern using sed with no luck. Maybe someone can help me.
I am trying to find </Endtag>. Once I find that, I want to merge the previous line with the current line. I can do it with the next line with using N in sed but not previous. Anyone have a suggestion? Ex. Hello how are you. </Endtag> <New> I am fine.</New> This is a test. Results should be: Hello how are you. </Endtag><New> I am fine.</New> This is a test. |
| Bookmarks |
| Tags |
| solaris |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|