Search Results

Search: Posts Made By: Nagaraj R
8,446
Posted By wbport
MadeInGermany's answer in sed is worthy of study....
MadeInGermany's answer in sed is worthy of study.
If we found <td> first check to see if this is not the last line "$!", append
the next line "N" into the pattern space which now contains two...
8,446
Posted By RavinderSingh13
Hello Nagaraj R, Welcome to forums, please...
Hello Nagaraj R,

Welcome to forums, please use code tags for commands/codes/Inputs which you are using into your posts as per forum rules. Could you please try following and let me know if this...
8,446
Posted By RudiC
Try alsosed '/<td>/ {N;s/^<td>\n\(<td...
Try alsosed '/<td>/ {N;s/^<td>\n\(<td style=\)/\1/}' file
8,446
Posted By MadeInGermany
A Unix sed needs a newline or a semicolon before...
A Unix sed needs a newline or a semicolon before the closing }
sed '/<td>/ {$!N;s/^<td>\n\(<td style=\)/\1/;}' file
Also most Unix sed have the bug to not do the default print if there is a N...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 03:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy