fork download
  1. #!/bin/bash
  2. echo '-- Header --
  3. info1
  4. info2
  5. something
  6. < not interesting >
  7. dont need this
  8. + new section
  9. additional 1
  10. additional 2' | sed -n '/^[a-z]/N;/^[a-z].*\n[a-z]/{p;:l n;/^[a-z]/{p;bl};a
  11. }'
  12.  
Success #stdin #stdout 0s 4360KB
stdin
Standard input is empty
stdout
info1
info2
something

additional 1
additional 2