Build a CLI tool /app/logq that queries a custom log format. The tool reads a log file and answers one query…
Build a CLI tool /app/logq that queries a custom log format. The tool reads a log file and answers one query…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input file format: - Lines are either EVENT lines or comment lines. - A comment line starts with and must…
The task
**Input file format:** - Lines are either `EVENT` lines or comment lines. - A comment line starts with `#` and must be ignored. - An `EVENT` line has the form: ``` EVENT <ts> <id> <val> ``` where: - `<ts>` is an ISO-8601 timestamp in UTC with mandatory seconds and mandatory `Z` suffix: `YYYY-MM-DDTHH:MM:SSZ` - `<id>`…
Part of ai-and/termgrade-environments.