in reply to Copying text between markers
perl -ne 'print if /<!--TABLE -->/ .. m|<!--/TABLE -->/|' *.tpl > data [download]
_________broquaint