Write a command-line tool norm that normalizes CSV or NDJSON input into canonical NDJSON, reading from files…
Write a command-line tool norm that normalizes CSV or NDJSON input into canonical NDJSON, reading from files…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - Accept zero or more file paths. If zero files, read stdin. If "-" appears, read stdin at…
The task
**Input contract:** - Accept zero or more file paths. If zero files, read stdin. If "-" appears, read stdin at that position. Multiple files are concatenated logically. - Each file is EITHER CSV (with header) OR NDJSON (one JSON object per line, LF-separated). Determine format per file independently by inspecting the…
Part of ai-and/termgrade-environments.