Removes all events preceeding a given year from an .ics calendar file (the kind you can find e.g. in a Radicale-based CalDAV server).
./trim-calendar.sh Personal 2016 # removes all events starting before the year 2016 from the calendar stored in Personal.ics file
Thanks for the work but as @codiflow pointed out this script does not work as-is and should not be executed blindly.
Here is a reworked edition of this script which is save to use and avoids these pitfalls:
https://gist.github.com/ewaldbenes/0067b79250b4dc65591bc606325ce90e