Regex wizards…
how would you join every line ending with :
with the line below it?
Regex wizards…
how would you join every line ending with :
with the line below it?
Which language? Not possible with standard sed AFAIK.
Can do with standard ed though: echo -e 'g/:$/j\n,p' | ed -s test.txt
If you don't know whether newlines are \n or \r\n: echo -e 'g/:\r*$/j\n,p' | ed -s test.txt