====== SED - Join - Append the next line, if a line begins with an equal sign ====== Also replaces the "=" with a single space. sed -e :a -e '$!N;s/\n=/ /;ta' -e 'P;D'