This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -euo pipefail | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "$0") <calendar.ics> <year> <month> [--rewrite-domain OLD NEW] | |
| Removes all events before the specified year/month and saves the result | |
| to a new file with .trimmed.ics suffix. |