Sed-replacing a pattern
- by grails_enthu
I have below code:
<td nowrap="nowrap" width="74">
<p align="center">server1</p>
</td>
<td nowrap="nowrap" width="74">
<p align="center">server2</p>
</td>
and so on.I want to get output as:
<td nowrap="nowrap" width="74">server1</td>
<td nowrap="nowrap" width="74">server2</td>
What should be my approach?Say for example the file is server.html
I have done something like this:
sed "s/<p align="center">*</p>/*/" -i server.html
But its not working.