![]() |
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 |
| sed ksh remove newline between 2 containers | JamesJSC | Shell Programming and Scripting | 3 | 12-19-2008 04:54 AM |
| how to remove all tabs and newline (\n) | pvr_satya | Shell Programming and Scripting | 2 | 08-16-2008 02:38 PM |
| grep the pattern followed by newline | lalelle | Shell Programming and Scripting | 2 | 08-21-2007 08:02 PM |
| remove trailing newline characters | shweta_d | Shell Programming and Scripting | 7 | 06-05-2007 09:29 AM |
| grep and sed to find a pattern and add newline | ssikhar | Shell Programming and Scripting | 5 | 10-26-2004 05:32 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
SED: how to remove newline after pattern?
Hi,
I have the following XML not well-indented code: <hallo >this is a line </hallo> So I need to remove the newline. This syntax finds what I need to correct, but I don't know how to remove the newline after my pattern: sed 's/<.*[^>]$/&/' How can I subtract the newline after my pattern, please? Thank you in advance, Nico |