/ Published in: Bash
line1=[aaaa]
content
line2=[bbbb]
let "0000" repalce the content.
content
line2=[bbbb]
let "0000" repalce the content.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
v='oooo';sed -n '/^\[aaaa\]/{p;:a;n;H;/^\[bbbb]/!ba;x;s/.*/'"$v"'/;G;};p'