Interview practice question
Processing a huge CSV on the command line
Cloud & DevOps · Linux and Scripting · Intermediate
You need to count unique customers in a 30 GB CSV on a Linux server with limited memory. How would you do it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Stream with cut/awk; avoid loading fully.
- sort -u with temp dir and memory flags.
- LC_ALL=C for speed.
- Or awk associative array if fits.
- DuckDB for SQL on file.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.