fork download
  1. #!/bin/bash
  2. s=$(echo -e "some text\n\n\n some other text\n\n more text\n")
  3. #echo "$s"
  4. sed '/^$/d' <<< "$s"
Success #stdin #stdout 0.01s 5472KB
stdin
Standard input is empty
stdout
some text
 some other text
 more text