replace 2nd column blanks with values in same column if blank
Where ,SOMELOGB and ,SOMELOGC replaces each /r carriage return if 2nd column is blank. The replace only happens if 2nd column is blank though and should replace up to the non blank row.
Start file
TEST,SOMELOG TESA,SOMELOGA TESB TESC TESD,SOMELOGB TESE TESF TESG,SOMELOGC
End file
TEST,SOMELOG TESA,SOMELOGA TESB,SOMELOGB TESC,SOMELOGB TESD,SOMELOGB TESE,SOMELOGC TESF,SOMELOGC TESG,SOMELOGC
View Diff
3,4c3,4 < TESB < TESC --- > TESB,SOMELOGB > TESC,SOMELOGB 6,7c6,7 < TESE < TESF --- > TESE,SOMELOGC > TESF,SOMELOGC
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 80 remaining solutions by signing in and submitting your own entry
#81 Stop and think / @ms_uncountable - Score: 26 - 07/06/17 @ 12:30
5Gf,vfBykpkp8Gf,vfCykpkpZZ
0 comments
#82 Gurukandhamoorthi / @Gurukandhamoor1 - Score: 26 - 07/11/17 @ 14:27
5Gf,y$3Gpu$pjpjjpjprCkrCZZ
0 comments
#83 Jurica / @Jurica34581259 - Score: 26 - 11/20/18 @ 22:50
qa/TES.$<CR>$ma/,<CR>y$`apq4@aZZ
0 comments