Input the following text into your terminal, using the instructions provided on pages 22-23 of Libre Graphics magazine issue 1.2. perl -n -e 's/(\S)\r\n/\1 /ms; print $_;' original.txt > withoutlinebreak.txt