Create a command-line tool /usr/local/bin/logquery that filters and transforms a log file.
Create a command-line tool /usr/local/bin/logquery that filters and transforms a log file.: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input contract: - The tool reads a log file from a path given as the first…
The task
**Input contract:** - The tool reads a log file from a path given as the first argument. - The log file is a text file where each line is a JSON object with these fields: - `ts` (string): ISO-8601 timestamp with timezone offset (e.g., `2024-01-15T09:30:00-05:00`, `2024-01-15T14:00:00Z`, `2024-01-15T14:00:00+00:00`) -…