I would like to delete all rows that have the string Excluído
, searching from a specific string to the end of another string. Example:
<p class="FolderPath">
<table class="DiffTable">
<tr>
<td class="DiffName">
<a name="I36676">
</a>
</td>
<td>
Excluído no destino
</td>
</tr>
</table>
</p>
It would delete all the lines that have the string Excluído
in the middle of them, starting the string search from <p class="FolderPath">
to the </p>
string. I know how to delete the line containing the string:
sed '/Excluído/d' arquivo.txt
How would you delete
N
lines? starting from<p class="FolderPath">
to string</p>
?