6
I have a file with several text blocks, separated by blank line. Ex.:
block1
block1
block2
block3
block3
I need a solution with sed, awk or perl that locates the first blank line and redirects the previous block to another file and so on until the end of the file.
I have this sed command that locates the first block, but not the rest: sed -and '/. /! Q'
Can someone help me?
Exactly John, this is what I needed. Thank you.
– ddamaral