How to use AWK, or the paste command + sed, to merge lines in a text file based on a condition, such as starting or not starting with a number. It’s a handy fix for tables exported to text with embedded newlines.
Source: LXer – Join consecutive lines if condition applies