aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/icalcat
diff options
context:
space:
mode:
Diffstat (limited to '.local/share/bin/icalcat')
-rwxr-xr-x.local/share/bin/icalcat12
1 files changed, 12 insertions, 0 deletions
diff --git a/.local/share/bin/icalcat b/.local/share/bin/icalcat
new file mode 100755
index 0000000..2e89afd
--- /dev/null
+++ b/.local/share/bin/icalcat
@@ -0,0 +1,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
+