User Tools

Site Tools


sed:join:append_the_next_line_if_a_line_begins_with_an_equal_sign:append_the_next_line_if_a_line_begins_with_an_equal_sign

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'
sed/join/append_the_next_line_if_a_line_begins_with_an_equal_sign/append_the_next_line_if_a_line_begins_with_an_equal_sign.txt · Last modified: 2020/08/16 13:24 by 192.168.1.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki