1
将Grindstone 3数据导出到iCalendar文件
有没有办法将Grindstone 3数据导出到 iCalendar文件 ? 对于Grindstone 2,我使用的是Perl 脚本 : #!/usr/bin/perl $xmlfile = @ARGV[0]; if ( ! $xmlfile ) { print "Usage: $0 grindstone_export.xml\n" ; exit 0 } $icsfile = $xmlfile; $icsfile =~ s/\.xml$/.ics/g; open (ICSFILE,">$icsfile"); print "Writing to $icsfile\n"; print ICSFILE "BEGIN:VCALENDAR\n\n"; open (XMLFILE,$xmlfile); while (<XMLFILE>) { $line = $_; if …