UNIX Parse HTML Page Display Contents of a Tag - One Liner?
- by NJTechie
I have an HTML file and I am interested in the data enclosed by <pre> </pre> tags. Is there a one-liner that can do achieve this?
Sample file :
<html>
<title>
Hello There!
</title>
<body>
<pre>
John Working
Kathy Working
Mary Working
Kim N/A
</pre>
</body>
</html>
Output should be :
John
Kathy
Mary
Kim
Much appreciated guys, thank you!