Search Results

Search: Posts Made By: SorcRR
7,761
Posted By stomp
Since HTML is very similar to XML, you may use an...
Since HTML is very similar to XML, you may use an xml tool to parse your file.

Since your HTML-File is not fully standards compliant, the parser complains about it and the file has either be...
7,761
Posted By RudiC
Why didn't you specify that, then, in the first...
Why didn't you specify that, then, in the first place?


Try
sed -n '/<p/,/<\/p/ {/<p.*\/p>/b; s/ *<[^>]*> *//g; /^$/d; p}' file
text1
text2
text3
Showing results 1 to 2 of 2

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