in reply to converting txt to csv and formatting
3. Again a search and replace to put comma at the end of each line.%s/\(.*\),\(.*\)/"\1,\2"/g
4.Then record a simple Macro or make it manually as:%s/\n/,\r/g
5. Replay the macro N number of times where N >= records or you can say N = (No. of lines/3):let @q="JJj"
Save the file and you are done. Just rename it to <Filename>.csv and the file is ready.%s/,$//g
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: converting txt to csv and formatting
by gurpreetsingh13 (Scribe) on Jul 07, 2014 at 09:17 UTC |