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
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