Write a command-line tool that processes a UTF-8 encoded CSV-like log file and produces a summary report.
Write a command-line tool that processes a UTF-8 encoded CSV-like log file and produces a summary report.: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input file format: - One record per line, fields separated by…
The task
**Input file format:** - One record per line, fields separated by `|` (pipe character) - Lines may be terminated by LF (`\n`) or CRLF (`\r\n`) - Empty lines (zero characters or whitespace-only) must be ignored - Lines starting with `#` are comments and must be ignored - Each valid record has exactly 4 fields:…