Skip to content

Instantly share code, notes, and snippets.

#!/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.