I am trying get a large text file with lines like this:
Quote:
His scream of agony echoed off the uncaring stones.
Chapter One
William dropped his book with a disgusted sigh and looked at
|
To end up like this:
Quote:
His scream of agony echoed off the uncaring stones.
Chapter One
William dropped his book with a disgusted sigh and looked at
|
Basically I want to add an extra blank line after every blank line. I have tried using something like this:
Code:
cat file.txt | sed -r s/\n/\n\n/ > newfile.txt
But it does not seem to work. Any suggestions? The solution does not necessarily have to involve using sed.