Parsing with CSV: Unify lines and result.
col1;col2;col3;col4 A;1;4;5 A;3;4; A;1;4; # New output: col1;col2;col3;col4 A;1(2x);3;4(3x);5 any ideas?
Start file
col1;col2;col3;col4 A;1;4;5 A;3;4; A;1;4;
End file
col1;col2;col3;col4 A;1(2x);3;4(3x);5
View Diff
2,4c2 < A;1;4;5 < A;3;4; < A;1;4; --- > A;1(2x);3;4(3x);5
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock 76 remaining solutions by signing in and submitting your own entry
#77 Arne Ehrlich / @typedlambda - Score: 42 - 03/05/13 @ 13:00
cGcol1;col2;col3;col4<CR>A;1(2x);3;4(3x);5<Esc>ZZ
0 comments