如何从命令行将多个日历文件合并到一个日历文件.ics
中?.ics
答案1
我使用了这个脚本:
echo "BEGIN:VCALENDAR" >> merge;
for file in *.ics; do
cat "$file" | sed -e '$d' $1 | sed -e '1,/VEVENT/{/VEVENT/p;d;}' $2 >> merge;
done
mv merge merge.ics
echo "END:VCALENDAR" >> merge.ics;
如何从命令行将多个日历文件合并到一个日历文件.ics
中?.ics
我使用了这个脚本:
echo "BEGIN:VCALENDAR" >> merge;
for file in *.ics; do
cat "$file" | sed -e '$d' $1 | sed -e '1,/VEVENT/{/VEVENT/p;d;}' $2 >> merge;
done
mv merge merge.ics
echo "END:VCALENDAR" >> merge.ics;