in reply to Copying text between markers

perl -ne 'print if /<!--TABLE -->/ .. m|<!--/TABLE -->/|' *.tpl > data
That should give you a grab most if not all the data from *.tpl and redirect it into a file called data.
HTH

_________
broquaint