Implement a command-line tool at /usr/local/bin/rangequery that manages a collection of integer intervals…
Implement a command-line tool at /usr/local/bin/rangequery that manages a collection of integer intervals…: 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 exactly one argument: a…
The task
**Input contract:** The tool reads exactly one argument: a command string. It processes the command, writes the result (if any) to stdout, then exits. If the command is invalid or malformed, it writes nothing to stdout and exits with code 1.