join lines on line break in files

i had a file where lines appear to be broken when they shouldn't
eg
Line 1. kerl abc sdskd sdsjkdlsd sdsdksd \
Line 2. ksdkks sdnjs djsdjsd

i can do a shift join to combine the lines but i there are plenty of files with this issue
Line 1. kerl abc sdskd sdsjkdlsd sdsdksd ksdkks sdnjs djsdjsd
i need a script that files as input and fix the line break wherever it appears
Please Advice

try..

-bash-3.2$ sed '{:q;N;s/\\\n//g;t q}' file
kerl abc sdskd sdsjkdlsd sdsdksd ksdkks sdnjs djsdjsd
-bash-3.2$

thanks but i am getting the error
sed: The label {:q;N;s/\\\n//g;t q} is greater than eight characters.

also
the file is having \ in between the words also, there i have not to join
eg
abc sdhsdkjhdks \
sdjladjlksadlsasa
jsdksd ghsjdjsdjid
dsdsdkljs\ shkdkshddkksd

output

abc sdhsdkjhdks sdjladjlksadlsasa
jsdksd ghsjdjsdjid
dsdsdkljs\ shkdkshddkksd

try...

-bash-3.2$ sed -e ':a;N;$!ba;s/\\\n//g' -e 's/\\//g' file
abc sdhsdkjhdks sdjladjlksadlsasa
jsdksd ghsjdjsdjid
dsdsdkljs shkdkshddkksd
-bash-3.2$

With non GNU sed, commands must ne on separate lines :

sed -e ':a
N
$!ba
s/\\\n//g
' inputfile

Jean-Pierre.

Thanks , worked super. can you kindly elborate on the awk script how it was done:b:

A solution with awk :

awk '/\\$/ {printf "%s",substr($0, 1, length-1);next} 1' inputfile

Jean-Pierre.