aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/icalcat
blob: 2e89afdf12f8c3db9b54dd4499f9c7849ad53cba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
cat << "EOF"
BEGIN:VCALENDAR
VERSION:2.0
EOF

cat "$@" | sed -n -e '/^BEGIN:VEVENT$/,/^END:VEVENT$/p'

cat << "EOF"
END:VCALENDAR
EOF