====== SED - Join - Append the next line, if a line ends with a backslash ====== sed -e :a -e '/\\$/N; s/\\\n//; ta'