[Solved] How to concatenate multiples lines under first occurence of the header using Unix commands?

[ad_1]

If you don’t mind pushing this through multiple passes, I might suggest this:

Search:

^(Query=.*\n)((?:(?!Query=).*\n)+)\1

Replace:

\1\2

Live demo

1

[ad_2]

solved How to concatenate multiples lines under first occurence of the header using Unix commands?