How to add custom line endings in text file (e.g. I want to add a line ending after all periods)

Posted by rksprst on Stack Overflow See other posts from Stack Overflow or by rksprst
Published on 2010-05-25T23:23:19Z Indexed on 2010/05/25 23:31 UTC
Read the original article Hit count: 186

Filed under:
|
|
|
|

I have a bunch of text files where I want to add a line ending after each period.

I'm wondering if there is a way to do this by doing replacing all periods with a \n\n, assuming I have the right encoding (unix).

Anyone know how I would do this? Replace .'s with \n\n and then save as a different file?

Thanks!

© Stack Overflow or respective owner

Related posts about c++

Related posts about c