in reply to Re^4: Two line matchin thread Two line match
Understood.
perl -p0 -e 's/-----\n(\n|-----\n)*-----\n/-----\n/g' file.txt [download]