log analysis: add cli flag
log analysis: add cli flag: a task in smol-software-harbor (Harbor dataset). Add an option -s SINCE to errors.sh : only lines whose ISO timestamp (first field) is at or after SINCE are counted (for example -s 2024-06-02 or -s 2024-06-01T11:00:00 ). Without -s nothing changes; an unknown option…
The task
Add an option `-s SINCE` to `errors.sh`: only lines whose ISO timestamp (first field) is at or after SINCE are counted (for example `-s 2024-06-02` or `-s 2024-06-01T11:00:00`). Without `-s` nothing changes; an unknown option prints a usage message to stderr and exits with status 2. Run `bash tests/run.sh`.
Part of efederici/smol-software-harbor.