Implement a command-line tool /app/querylog that parses a custom log file and answers time-window queries.
Implement a command-line tool /app/querylog that parses a custom log file and answers time-window queries.: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input: - The tool reads a single log file from a path given…
The task
Input: - The tool reads a single log file from a path given as the first argument. - The second argument is a query string in the format `HH:MM-HH:MM` (start-end, inclusive on both ends). - The tool must output lines from the log file whose timestamp falls within that range (inclusive), preserving the original order…