2022-11-17 14:53:48 +01:00
|
|
|
#!/usr/bin/bash
|
|
|
|
touch all_tasks.org
|
|
|
|
echo "" > all_tasks.org
|
2023-01-09 00:04:26 +01:00
|
|
|
cat ~/Nextcloud/textes/orgmode/tasks.org >> all_tasks.org
|
|
|
|
cat ~/Nextcloud/textes/orgmode/tasks.org_archive >> all_tasks.org
|
|
|
|
cp all_tasks.org ~/Nextcloud/textes/orgmode/stats
|
2022-11-17 14:53:48 +01:00
|
|
|
|
2022-12-17 10:53:35 +01:00
|
|
|
|
|
|
|
touch stats.org
|
|
|
|
date >> stats.org
|
|
|
|
echo " décomptes: " >> stats.org
|
2022-11-17 14:53:48 +01:00
|
|
|
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"
|
2022-12-17 10:53:35 +01:00
|
|
|
echo " "
|
2022-11-17 14:53:48 +01:00
|
|
|
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"
|
|
|
|
|
|
|
|
prevus=$((todos + someday))
|
|
|
|
finis=$((cancelled_tasks + done))
|
|
|
|
tout=$((prevus + finis))
|
2022-12-17 10:53:35 +01:00
|
|
|
echo " "
|
2022-11-17 14:53:48 +01:00
|
|
|
echo " prévus : $prevus"
|
|
|
|
echo " finis : $finis"
|
2022-12-17 10:53:35 +01:00
|
|
|
counter=`grep -o '* CREATED' all_tasks.org | wc -l`
|
|
|
|
echo " CREATED : $counter"
|
2022-11-17 14:53:48 +01:00
|
|
|
echo " en tout : $tout"
|
2023-01-09 00:04:26 +01:00
|
|
|
counter=`ls -l ~/Nextcloud/textes/orgmode/org-roam/*.org | wc -l`
|
2022-11-17 14:53:48 +01:00
|
|
|
echo " Roam files : $counter"
|
2022-11-17 14:55:55 +01:00
|
|
|
|
2022-12-17 10:53:35 +01:00
|
|
|
#pandoc -i all_tasks.org -o all_tasks.json
|
|
|
|
|