Reputation: 2136
I have a text-file container a number of lines, which I need to turn into a csv. What is the easiest way to replace all the line-breaks with ", ". I have TextWrangler and read that it would do so by using grep and regular expressions, but have very little experience using regular expressions and don't know how grep works. Anyone who can help me get started?
Upvotes: 19
Views: 72673
Reputation: 208565
See chapters 7 and 8 of the TextWrangler User Manual if you have problems.
Upvotes: 34
Reputation: 17
Alternatively, and with only two pieces of software (Excel and Notepad++, which is also free and AWESOME).
and you know you can also save stuff as comma-separated values, right?
Upvotes: 0