summaryrefslogtreecommitdiff
path: root/caln/sortevents
diff options
context:
space:
mode:
Diffstat (limited to 'caln/sortevents')
-rwxr-xr-xcaln/sortevents6
1 files changed, 6 insertions, 0 deletions
diff --git a/caln/sortevents b/caln/sortevents
new file mode 100755
index 0000000..ebedb3c
--- /dev/null
+++ b/caln/sortevents
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+calnfile="${HOME}/.cache/caln"
+
+(sort $calnfile || exit 1) > /tmp/caln.sort
+mv /tmp/caln.sort $calnfile