perl -ln0777e'print /start:(.*?)end:/gs' input.txt