Than maybe two simple one-liners?
orperl -ple's/^line\d+=//' infile | perl -p0e 's!\n!/!g' > outfile
if end of the output has any meaning. Hmm, seems there is no beauty, too.perl -ple's/^line\d+=//' infile | perl -p0e 's!\s+$!! ; s!\n!/!g' > ou +tfile
In reply to Re^2: how to delete part of the line?
by grizzley
in thread how to delete part of the line?
by yskmonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |