I’m trying to join all lines who do not have a match
example text:
text Like
This is text of Line2
This is text of Line3
This is text of line4
Like text
This is text of line6
This is text of line7
Like
This is text of line9
All lines where “Like” is NOT present must join (with space between them)
end result:
text Like
This is text of Line2 This is text of Line3 This is text of line4
Like text
This is text of line6 This is text of line7
Like
This is text of line9
Can anyone help me?
I would use the following command.