How do I split a text file into an array by blank lines?
问题 I have a bash command that outputs text in the following format: Header 1 - Point 1 - Point 2 Header 2 - Point 1 - Point 2 Header 3 -Point 1 - Point 2 ... I want to parse this text into an array, separating on the empty line so that array[0] for example contains: Header 1 - Point 1 - Point 2 And then I want to edit some of the data in the array if it satisfies certain conditions. I was looking at something like this Separate by blank lines in bash but I'm completely new to bash so I don't