summaryrefslogtreecommitdiff
path: root/bin/kanbanscripts/havedone.sh
blob: fb47287947ccd81a8779bd99094277f5d8da817e (plain)
1
2
3
4
5
6
7
8
9
10
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"