On a Linux machine with GNU tools I have an ascii file that consists of only 2-line and 3-line paragraphs, each paragraph separated by a newline. All 2-line paragraphs are to be deleted so that all 3-line paragraphs remain separated by a newline. I've been experimenting unsuccessfully with awk paragraphs. Original content:
aaa aaaaaa
bb bbb
cc cccc ccccc cccc
ddd d
e eeeeee ee
fff ff
ggg gggg gggg
hhh hhh hh hhhh
ii
jjjj jjjj jjjjjj j jjj
The above should look like this:
aaa aaaaaa
bb bbb
cc cccc ccccc cccc
fff ff
ggg gggg gggg
hhh hhh hh hhhh
I would prefer sed, awk, or perl for this.