View Single Post
Old 11-25-2010, 08:24 AM   #5
oldbwl
Zealot
oldbwl doesn't litteroldbwl doesn't litter
 
oldbwl's Avatar
 
Posts: 122
Karma: 164
Join Date: Aug 2010
Location: Old Ynysybwl
Device: Sony PRS-300
Quote:
Originally Posted by frabjous View Post
Any decent text editor? Vim? Emacs? Textmate? Notepad++? They're all free.

You could use any scripting language with regex capabilities: perl, python, sed, awk, lua, etc., probably with a one-liner.

For a text file:

Code:
perl -pe 's/([^\.])\n\n/\1 /g' filename > new-filename
would replace every double line-break following anything but a full-stop with a single space, if I'm not mistaken.

I can't stand Windows. I can't stand Word. So I'm afraid I can't help you do it there.
I have to use WIndows and Word and am not allowed to intall any programs, so I am stuck. Such a pity I don't know how to convert your code snippet to a Word Equiv. Looks good. I need to find a detailed help file on what expressions I can use in Word. I will start with the built in one but don'tr hold out too much hope.
oldbwl is offline   Reply With Quote