Concatenate lines in file shell script

Hi colleagues,
I have a file in this format.

"/cccc/pppp/dddd/ggg/prueba.txt".
ERROR"  THE error bbbbbbbbbb finish rows.
"/kkkk/mmmm/hhhh/jjj/ejemplo.txt".
ERROR This is other error rows.

I need my file in this format.

"/cccc/pppp/dddd/ggg/prueba.txt". ERROR"  THE error bbbbbbbbbb finish rows.
"/kkkk/mmmm/hhhh/jjj/ejemplo.txt". ERROR This is other error rows.

Somebody can say me how to do this jobs?
Thank you for you help.

Hi,
already tried to google for it?
linux - Concatenate Lines in Bash - Stack Overflow

see ya
fra

@systemoper
Please mention what Operating System and version you have and what Shell you prefer.
Is your example data representative?

while read line
do
   read line2
  echo "$line" "$line2" 
done <inputfile
1 Like