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
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
72 remaining solutions by
signing in and submitting your own entry
#73
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
73 active golfers, 165 entries
Leaderboard (lowest score wins):
02/28/2013 at 04:37AM
02/28/2013 at 05:17PM
02/28/2013 at 10:08PM
03/04/2013 at 05:22AM
03/08/2013 at 03:44PM
#6 - Bernhard Tausch / @tauschb
03/08/2013 at 03:45PM
#7 - Martin Sander / @0x89
03/08/2013 at 03:45PM
03/08/2013 at 03:49PM
03/10/2013 at 03:43PM
#10 - Mikael Gustavsson / @slvmnd
03/13/2013 at 03:09PM
03/28/2013 at 09:43PM
05/08/2013 at 03:15PM
05/11/2013 at 10:46PM
05/13/2013 at 11:08AM
05/28/2013 at 12:53PM
06/28/2013 at 05:59PM
07/02/2013 at 02:30PM
07/13/2013 at 08:03AM
#19 - Jeroen van der Neut / @jvdneut
07/20/2013 at 01:35PM
08/09/2013 at 11:25PM
#21 - Joonas Pihlajamaa / @jokkebk
03/14/2014 at 05:14PM
05/04/2014 at 04:25PM
07/08/2014 at 05:27AM
02/01/2016 at 10:14PM
12/03/2018 at 07:54AM
10/31/2023 at 11:20PM
02/28/2013 at 09:35AM
02/28/2013 at 10:28PM
03/01/2013 at 10:15PM
#30 - Kristian Lewis Jones / @klj613
03/01/2013 at 11:06PM