sed remover linhas vazias
sed '/^$/d' /tmp/data.txt
bougui
sed '/^$/d' /tmp/data.txt
tr -d '\n' < input.txt > output.txt