Monday, March 17, 2014

Emacs insert new line in minimized CSV

Minimized CSV file content:
"2013-01-12","test", "123","2013-01-12","test", "123","2013-01-12","test", "123"

to convert to CSV (new line at each "yyyy-mm-dd", "test" tuple):
M-x replace-regexp
\("[0-9]+",\)
replace with: (new line insert)
\1<C-q C-j>n

Done

No comments:

Post a Comment