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