Text between two tags

I want to retrieve whatever is between these two tags – <tr> </tr> – from an html doc.
Now I don’t have any specific html requirements that would warrant for an html parser. I just plain need something that matches <tr> and </tr> and gets everything in between and there could be multiple trs.
I tried awk, which works, but for some reason it ends up giving me duplicates of each row extracted.

Get path of current script when executed through a symlink

I have a utility consisting of a couple of directories with some bash scripts and supporting files that will be deployed to several machines, possibly in a different directory on each machine. The scripts need to be able to reference paths relative to themselves, so I need to be able to get the path to the file that’s currently being executed.