You are not logged in.
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.
\n works for me.
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.
I don’t know TextMate, but what also works in a text editor is to copy a line break and paste it into the ‘replace with’ field.