perl -ple's/^line\d+=//' infile | perl -p0e 's!\n!/!g' > outfile