Sign inSign up free

Merge Two Exports, Latest Row Wins

medium 20 XP ~8 minHands-on lab

Two systems exported customers to /srv/lab/exports/crm.csv and /srv/lab/exports/billing.csv. Both have the header id,email,plan,updated_at. The same customer can appear in both files, and more than once in the same file.

Task

Write /home/student/customers.csv:

  • the same header, then one row per id
  • for each id, the row with the latest updated_at (ISO 8601 UTC timestamps such as 2026-10-14T09:12:03Z)
  • rows sorted by id as a number (so 9 comes before 10)

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.