count all tasks
This commit is contained in:
parent
7af2853018
commit
7606c4e99d
|
@ -133,3 +133,4 @@ dist
|
||||||
output/*
|
output/*
|
||||||
source/*.json
|
source/*.json
|
||||||
sources/*
|
sources/*
|
||||||
|
/scripts/all_tasks.org
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
#!/usr/bin/bash
|
||||||
|
touch all_tasks.org
|
||||||
|
echo "" > all_tasks.org
|
||||||
|
cat /home/tykayn/Nextcloud/textes/orgmode/tasks.org >> all_tasks.org
|
||||||
|
cat /home/tykayn/Nextcloud/textes/orgmode/tasks.org_archive >> all_tasks.org
|
||||||
|
|
||||||
|
echo " décomptes: "
|
||||||
|
todos=`grep -o '* TODO' all_tasks.org | wc -l`
|
||||||
|
echo " TODO : $todos"
|
||||||
|
|
||||||
|
counter=`grep -o '* SOMEDAY' all_tasks.org | wc -l`
|
||||||
|
echo " SOMEDAY : $counter"
|
||||||
|
someday=$counter
|
||||||
|
|
||||||
|
counter=`grep -o '* WAITING' all_tasks.org | wc -l`
|
||||||
|
echo " WAITING : $counter"
|
||||||
|
|
||||||
|
counter=`grep -o '* CANCELLED' all_tasks.org | wc -l`
|
||||||
|
cancelled_tasks=$counter
|
||||||
|
echo " CANCELLED : $counter"
|
||||||
|
|
||||||
|
counter=`grep -o '* DONE' all_tasks.org | wc -l`
|
||||||
|
done=$counter
|
||||||
|
echo " DONE : $counter"
|
||||||
|
|
||||||
|
counter=`grep -o '* CREATED' all_tasks.org | wc -l`
|
||||||
|
echo " CREATED : $counter"
|
||||||
|
|
||||||
|
prevus=$((todos + someday))
|
||||||
|
finis=$((cancelled_tasks + done))
|
||||||
|
tout=$((prevus + finis))
|
||||||
|
|
||||||
|
echo " prévus : $prevus"
|
||||||
|
echo " finis : $finis"
|
||||||
|
echo " en tout : $tout"
|
||||||
|
counter=`ls -l /home/tykayn/Nextcloud/textes/orgmode/org-roam/*.org | wc -l`
|
||||||
|
echo " Roam files : $counter"
|
Loading…
Reference in New Issue