SQL to YAML
Should be easy with vim, or not?
Start file
(1,'cleora.baugh@example.com','2016-02-12 09:00:09',NULL), (2,'hedy.van-gossard@example.com','2016-02-12 09:00:09',NULL), (2,'bryce.steeves@example.com','2016-02-12 09:00:09',NULL), (3,'rodger.van-harland@example.com','2016-02-12 09:00:09',NULL), (3,'jami.waid@example.com','2016-02-12 09:00:09',NULL),
End file
cleora.baugh: group_id: 1 full_name: Cleora Baugh mail: cleora.baugh@example.com hedy.van-gossard: group_id: 2 full_name: Hedy van Gossard mail: hedy.van-gossard@example.com bryce.steeves: group_id: 2 full_name: Bryce Steeves mail: bryce.steeves@example.com rodger.van-harland: group_id: 3 full_name: Rodger van Harland mail: rodger.van-harland@example.com jami.waid: group_id: 3 full_name: Jami Waid mail: jami.waid@example.com
View Diff
1,5c1,20 < (1,'cleora.baugh@example.com','2016-02-12 09:00:09',NULL), < (2,'hedy.van-gossard@example.com','2016-02-12 09:00:09',NULL), < (2,'bryce.steeves@example.com','2016-02-12 09:00:09',NULL), < (3,'rodger.van-harland@example.com','2016-02-12 09:00:09',NULL), < (3,'jami.waid@example.com','2016-02-12 09:00:09',NULL), --- > cleora.baugh: > group_id: 1 > full_name: Cleora Baugh > mail: cleora.baugh@example.com > hedy.van-gossard: > group_id: 2 > full_name: Hedy van Gossard > mail: hedy.van-gossard@example.com > bryce.steeves: > group_id: 2 > full_name: Bryce Steeves > mail: bryce.steeves@example.com > rodger.van-harland: > group_id: 3 > full_name: Rodger van Harland > mail: rodger.van-harland@example.com > jami.waid: > group_id: 3 > full_name: Jami Waid > mail: jami.waid@example.com
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 19 remaining solutions by signing in and submitting your own entry