What stands out in Miller
Miller works with named fields in text files. That makes a saved command more legible than a set of instructions such as “delete the third column.” A volunteer can understand a door list described in terms of status, vendor and booth even if a later export moves those fields.
Walkthrough
- Keep market.csv in a working folder and open a terminal there. Run mlr --icsv --opprint head -n 2 market.csv to see two records as an aligned table. Check that the names of the fields match the sample before typing the filter.
- In Bash or PowerShell run the command shown below. The filter keeps confirmed tickets. The cut operation limits the output to the vendor and booth fields. Run it on screen before redirecting anything to a file.
- Count the four confirmed rows. North Pier Print and North Pier Prints both survive because the filter tests status, not identity. Decide whether your door team needs one line per registration or one per occupied booth before doing any deduplication.
- For a fresh CSV file replace the pretty-print options in a display command with --csv, and write the result to a new filename. Never redirect output onto market.csv while reading it. Open the result independently and check the first line and the row count.
mlr --csv filter '$status == "confirmed"' then cut -f vendor,booth market.csvField tip
Put the exact header names in the handoff notes. A changed heading such as registration_status can leave a previously sensible filter with no matching records. Compare the first two input rows each time a new supplier sends a file.
Where it falls short
This workflow produces a list of registrations. It does not resolve similar vendor names. For a short list that needs human judgment about identity, the OpenRefine guide covers a more suitable inspection step.
Try it yourself
Change just one row from pending to confirmed in a separate copy. Run the same filter there. The new door list should gain exactly one line for Red Kite Studio while the original result still contains four. That check tests the rule independently of the display formatting.