Textpattern CMS support forum
text file editing wizardry
I have a text file that is a busload of URLs, all strung together in one continuous block and separated only by a comma. How can I quickly turn the commas into line breaks?
I’ve tried TextMate but don’t seem to be able to do it. I’ve tried importing into a spreadsheet but the commas are treaded like column separators when what I’m really after is a single column of URLs (each to it’s own row).
I suspect command-line is the answer, but I’m many years removed from emacs, etc.
Re: text file editing wizardry
Strange, not working for me. Steve’s example just replaces the comma with \r. And Els’ example inserts the \n after the comma, even though it’s a find/replace. Still using TextMate, btw.