#!/bin/bash
s='#cat -et file.bin

echo "I: Installation finished!"
exit 0

__DATA__

3<ED>M-^PM-^PM-^PM-^PM-^'

sed -n '/__DATA__/{n;:1;n;p;b1}' <<< "$s"