Linux tip, Fedora tip / howto: convert an ical 1.7 file to 2.0
Try my online puzzle page with Calcudoku, Killer Sudoku and online Sudoku.
convert an ical 1.7 file to 2.0This page is about converting .calendar files of the Tcl/Tk ical program.
I had been using version 2.3.1 for the longest time, which apparently uses version 1.7 of the calendar file, and recently updated to version 3.0.2, only to find that it exits with "illegal version".
Digging around the code for a bit I found that with a few small changes, a 1.7 file can be converted to one that can be read by ical version 3 (didn't really feel like entering all info again..).
I wrote a small converter script in Perl: convert_ical_calendar.perl
If you copied your old .calendar file to calendar_old, for example, then run it like this:
The script will produce a file calendar_old_v2, which you can then rename again to ~/.calendar
Send me your comments!Something didn't work as expected? You'd like to add some useful info to this tip? Use the form below to send me your comments. (Don't forget to fill out the super-lame CAPTCHA below..)