I have a text file in which the text has been divided into paragraphs (two line breaks or tab marks a new paragraph) and I want to make a script which output would delete line breaks within the paragraph and the different paragraphs would be separated by two line breaks.
So, if my input file is:
Code:
The first line.
Second line.
First line of the second paragraph.
Second line of the second paragraph.
I want the output to be something like:
Code:
The first line. Second line.
First line of the second paragraph. Second line of the second paragraph.
I have tried now for some hours to come up with something reasonable, but I seem to be heading the wrong way. I would be really pleased if someone gave their idea of how to solve the problem.
Thanks!