Screen Too Small

This course material requires a larger screen to properly display the terminal and editor interfaces.

Please use a tablet, laptop, or desktop computer for the best learning experience.

You can continue browsing, but the experience will be significantly limited.

Feed, Change, Edit: Mastering Baby Logs in Vim

Typecraft's baby log has been mostly well-kept… until a sleep-deprived 3AM entry and a couple voice-to-text dictations gone wrong. Now the pediatrician’s email parser is rejecting the log due to "inconsistent formatting." Your task is to clean it up and convert it into CSV.

Starting Text

vim@sandbox: ~/start.txt
vim
08:00AM - fed - 4oz 10:30AM - diaper - wet 12:15PM -- fed -- 3oz 2:00PM - diaper - dirty 04:10PM - fed - 5oz 06:20PM - fed - 4oz 08:45PM -diaper-wet

Expected Output

vim@sandbox: ~/expected.txt
vim
08:00AM,fed,4oz 10:30AM,diaper,wet 12:15PM,fed,3oz 2:00PM,diaper,dirty 04:10PM,fed,5oz 06:20PM,fed,4oz 08:45PM,diaper,wet

Hold on, cowboy

You gotta sign up to view challenges

New challenges appear every week. They're fun, and insightful

Sign up or sign in now!