How to insert line breaks into a text file – not programming, not fixed width – via find & replace

find and replacenewlinestext editing

This is a different from someone else's similarly-titled question. Neither Excel nor OpenOffice allow users to specify line delimiters, so I'm trying to replace semi-colons with line breaks. How do I edit the code of a text file?

In Notepad I tried replace ; with /n. I didn't think it would work; and it didn't. My long single-line txt/~csv file is crying: Help!

Best Answer

Using sed:

sed -e 's/:/\n/g' foo.txt
Related Question