I have a large text file that I would like to put in my ebook reader, but the formatting becomes wrong, because all the lines are rigidly wrapped in column 80 or in front of column 80 with CR / LF, and paragraphs / headings are not marked differently , there is also only one CR / LF.
I would like to replace all CR / LF after column 75 with a space. This will make most paragraphs continuous. (Not an ideal solution, but much better read.)
Is it possible to do this with regex? Preferably (linux) perl or sed oneliner, alternatively the regular expression Notepad ++.
Olav source
share