From 2a9538f7711dcea71ba5702ca94a9d9c00287ea4 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 16 Feb 2020 15:57:40 -0500 Subject: added the rest of bin --- bin/kanbanscripts/havedone.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/kanbanscripts/havedone.sh (limited to 'bin/kanbanscripts/havedone.sh') diff --git a/bin/kanbanscripts/havedone.sh b/bin/kanbanscripts/havedone.sh new file mode 100755 index 0000000..fb47287 --- /dev/null +++ b/bin/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" -- cgit v1.2.3-70-g09d2