summaryrefslogtreecommitdiff
path: root/kanbanscripts/havedone.sh
diff options
context:
space:
mode:
Diffstat (limited to 'kanbanscripts/havedone.sh')
-rwxr-xr-xkanbanscripts/havedone.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/kanbanscripts/havedone.sh b/kanbanscripts/havedone.sh
new file mode 100755
index 0000000..fb47287
--- /dev/null
+++ b/kanbanscripts/havedone.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+cd ~/gtd
+mkdir -p ~/gtd/done/$(date '+%Y-%m-%d')
+OIFS="$IFS"
+IFS=$'\n'
+for f in $(find . -maxdepth 1 -type f -print0 | xargs -0 grep -li @done)
+ do
+ printf $f
+ mv $f ~/gtd/done/$(date '+%Y-%m-%d')
+ done
+IFS="$OIFS"