up count lines in roam
This commit is contained in:
parent
f831c55aa6
commit
9c72397d38
|
@ -5,53 +5,53 @@ echo "" > all_tasks.org
|
|||
|
||||
cat ~/Nextcloud/textes/orgmode/tasks.org >> all_tasks.org
|
||||
cat ~/Nextcloud/textes/orgmode/boulot.org >> all_tasks.org
|
||||
cat ~/Nextcloud/textes/orgmode/notes.org >> all_tasks.org
|
||||
cat ~/Nextcloud/textes/orgmode/journal.org >> all_tasks.org
|
||||
cat ~/Nextcloud/textes/orgmode/incoming_inbox.org >> all_tasks.org
|
||||
cat ~/Nextcloud/textes/orgmode/*.org_archive >> all_tasks.org
|
||||
cat ~/Nextcloud/textes/orgmode/*.org_archive_* >> all_tasks.org
|
||||
#cat ~/Nextcloud/textes/orgmode/tasks.org_archive >> all_tasks.org
|
||||
#cat ~/Nextcloud/textes/orgmode/*.org_archive_1 >> all_tasks.org
|
||||
#cat ~/Nextcloud/textes/orgmode/incoming_inbox.org_archive >> all_tasks.org
|
||||
cp all_tasks.org ~/Nextcloud/textes/orgmode/stats
|
||||
echo "concaténation des fichiers tasks.org et tasks.org_archive faite dans all_tasks.org \n"
|
||||
|
||||
touch stats.org
|
||||
touch ~/Nextcloud/textes/orgmode/stats.org
|
||||
date >> stats.org
|
||||
echo " décomptes: " >> stats.org
|
||||
echo " décomptes: " >> ~/Nextcloud/textes/orgmode/stats.org
|
||||
# dans les archives, les tâches sont toujours un header de niveau 1, on peut donc les trouver avec la recherche de : "* "
|
||||
todos=`grep -o '* TODO' all_tasks.org | wc -l`
|
||||
echo " TODO : $todos" | tee -a ./stats.org
|
||||
echo " TODO : $todos" | tee -a ~/Nextcloud/textes/orgmode/stats.org
|
||||
|
||||
counter=`grep -o '* SOMEDAY' all_tasks.org | wc -l`
|
||||
echo " SOMEDAY : $counter" | tee -a ./stats.org
|
||||
echo " SOMEDAY : $counter" | tee -a ~/Nextcloud/textes/orgmode/stats.org
|
||||
someday=$counter
|
||||
|
||||
counter=`grep -o '* WAITING' all_tasks.org | wc -l`
|
||||
echo " WAITING : $counter" | tee -a ./stats.org
|
||||
echo " " | tee -a ./stats.org
|
||||
echo " WAITING : $counter" | tee -a ~/Nextcloud/textes/orgmode/stats.org
|
||||
echo " " | tee -a ~/Nextcloud/textes/orgmode/stats.org
|
||||
counter=`grep -o '* CANCELLED' all_tasks.org | wc -l`
|
||||
cancelled_tasks=$counter
|
||||
echo " CANCELLED : $counter" | tee -a ./stats.org
|
||||
echo " CANCELLED : $counter" | tee -a ~/Nextcloud/textes/orgmode/stats.org
|
||||
|
||||
counter=`grep -o '* DONE' all_tasks.org | wc -l`
|
||||
done=$counter
|
||||
echo " DONE : $counter" | tee -a ./stats.org
|
||||
echo " DONE : $counter" | tee -a ~/Nextcloud/textes/orgmode/stats.org
|
||||
|
||||
prevus=$((todos + someday))
|
||||
finis=$((cancelled_tasks + done))
|
||||
tout=$((prevus + finis))
|
||||
echo " " | tee -a ./stats.org
|
||||
echo " prévus : $prevus" | tee -a ./stats.org
|
||||
echo " finis : $finis" | tee -a ./stats.org
|
||||
echo " " | tee -a ~/Nextcloud/textes/orgmode/stats.org
|
||||
echo " prévus : $prevus" | tee -a ~/Nextcloud/textes/orgmode/stats.org
|
||||
echo " finis : $finis" | tee -a ~/Nextcloud/textes/orgmode/stats.org
|
||||
counter=`grep -o '* CREATED' all_tasks.org | wc -l`
|
||||
echo " CREATED : $counter" | tee -a ./stats.org
|
||||
echo " en tout : $tout" | tee -a ./stats.org
|
||||
echo " CREATED : $counter" | tee -a ~/Nextcloud/textes/orgmode/stats.org
|
||||
echo " en tout : $tout" | tee -a ~/Nextcloud/textes/orgmode/stats.org
|
||||
|
||||
counter=`ls -l ~/Nextcloud/textes/orgmode/org-roam/**/*.org | wc -l`
|
||||
echo " Roam files : $counter" | tee -a ./stats.org
|
||||
echo " " | tee -a ./stats.org
|
||||
echo " Mots dans les foichiers" | tee -a ./stats.org
|
||||
wc ~/Nextcloud/textes/orgmode/org-roam/**/*.org -w |grep total | tee -a ./stats.org
|
||||
echo " Roam files : $counter" | tee -a ~/Nextcloud/textes/orgmode/stats.org
|
||||
echo " " | tee -a ~/Nextcloud/textes/orgmode/stats.org
|
||||
echo " Lignes dans les fichiers org Roam" | tee -a ~/Nextcloud/textes/orgmode/stats.org
|
||||
wc ~/Nextcloud/textes/orgmode/org-roam/**/*.org -l |grep total | tee -a ~/Nextcloud/textes/orgmode/stats.org
|
||||
echo " Mots dans les fichiers org Roam" | tee -a ~/Nextcloud/textes/orgmode/stats.org
|
||||
wc ~/Nextcloud/textes/orgmode/org-roam/**/*.org -w |grep total | tee -a ~/Nextcloud/textes/orgmode/stats.org
|
||||
|
||||
#pandoc -i all_tasks.org -o all_tasks.json
|
||||
|
||||
|
|
Loading…
Reference in New Issue