1
I have some text like:
from her patient
scrutiny
and judicious criticism.J.K.
WASHINGTON, D.C.
April, 1919.
And want to leave it like:
from her patient scrutiny and judicious criticism.
J.K.
WASHINGTON, D.C.
April, 1919.
How can I do it? I know you can replace newlines easily using the find & replace tool with /r/n
but I don't know how to do this.
Some extra step: I also want to delete one newline if the previous line was empty and just had a newline character. Is that possible?
I don't know much about programming but I'm okay if I need to use bash or any Terminal tool to do this. However I hope I can use 4 cpu cores because the text file is really long.
One file or multiple? If it is one file, you cannot really parallel-process this. Please show what line ending characters your file uses. Is it
\r\n\r\n
for the double whitespace? Can the file be converted to Unix line endings? – slhck – 2019-04-29T16:09:39.047It's one file sadly. But it's alright, I'll just leave it running then. The ending characters are always
\r\n
and also for the double whitespace (\r\n\r\n
). I would prefer to have Windows line endings but it's alright anyway, I think it's going to be easy to change\r
to\r\n
. – Maccer – 2019-04-29T17:31:46.820