#!/bin/bashs='Hello World</body></html>'sed -z 's#</body>\n</html>##g' <<< "$s"
Standard input is empty
Hello World
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!