$ ./s1 data2
Environment: LC_ALL = C, LANG = C
(Versions displayed with local utility "version")
OS, ker|rel, machine: Linux, 3.16.0-4-amd64, x86_64
Distribution : Debian 8.3 (jessie)
bash GNU bash 4.3.30
Lynx Version 2.8.9dev.1 (12 Mar 2014)
sed (GNU sed) 4.2.2
paste (GNU coreutils) 8.23
-----
Input data file data2.html:
<h3 class="single-item__title typo typo--skylark"><strong>Follow the Money</strong></h3>
<p class="single-item__subtitle typo typo--canary">Episode 1</p>
<h3 class="single-item__title typo typo--skylark"><strong>Follow Your Heart</strong></h3>
<p class="single-item__subtitle typo typo--canary">Episode 0</p>
-----
Results:
Follow the Money Episode 1
Follow Your Heart Episode 0
Best wishes ... cheers, drl
PS:
Advice for forum posts, general:
To obtain the best answers quickly for processing datasets - extracting, transforming, filtering, you should, after having searched for answers (man pages, Google, etc.):
Post representative samples of your data (i.e. data that should "succeed" and data that should "fail")
Post what you expect the results to be, in addition to describing them. Be clear about how the results are to be obtained, e.g. "add field 2 from file1 to field 3 from file2", "delete all lines that contain 'possum', etc.
Post what you have attempted to do so far. Post scripts, programs, etc. within CODE tags. If you have a specific question about an error, please post the shortest example of the code, script, etc. that exhibits the problem.
Place the data and expected output within CODE tags, so that they are more easily readable.
If you require the use of a specific shell or command, explain why that is the case: if you cannot solve a problem, it may be because you do not know about or enough about a software tool, in which case the responders are probably better judges of a solution than you are.
If you don't show us a representative sample of your input when you start, it should not be a surprise if responder-created-input, possibly in a different format from yours, will work, but your real data won't work with the solutions we suggest.
Special cases, exceptions, etc., are very important to include in the samples.