Write a CLI tool /usr/local/bin/normalize that normalizes a CSV or NDJSON file into clean NDJSON.
Write a CLI tool /usr/local/bin/normalize that normalizes a CSV or NDJSON file into clean NDJSON.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Goal : Read the input file (CSV or NDJSON), detect its format automatically, clean every value, and output exactly one…
The task
**Goal**: Read the input file (CSV or NDJSON), detect its format automatically, clean every value, and output exactly one NDJSON object per record to stdout. The output must be sorted by a specified key, with a stable tie-breaker on the original record order.
Part of ai-and/termgrade-environments.