#!/bin/bashs=$(echo -e "some text\n\n\n some other text\n\n more text\n")#echo "$s"sed '/^$/d' <<< "$s"
Standard input is empty
some text some other text more text
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!