Given a file with paragraphs (group of lines separated by a blank line).
It is guaranteed that the line breaks within equivalent paragraphs are conserved.
Is there a way of using
uniq to remove the duplicate paragraphs?
I suppose one could serialize each paragraph into a single line, perform
deserialize the result, is there a better solution?
Paragraph1 continue continue ... Paragraph2 continue continue ... Paragraph1 continue continue ... Paragraph2 continue continue
Desired output: only one Paragraph1 and Paragraph2.
A command line solution would be preferable.