#!/bin/bashtext=$(echo -e '###\nA\nB\nC\n@@@\n###\nD\nE\nF\n@@@\n###\nG\nH\nI\n@@@')sed '/###/{:a;N;/@@@/!ba;/A/d}' <<< "$text"
Standard input is empty
### D E F @@@ ### G H I @@@
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!