X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fnotes%2Finfo_overload_report.sh;h=6bf78ca6fbf20f13bf86ddcf7e753526e973a737;hb=6f4e983958f05a4495d692308edd6c68d351b721;hp=d4ce6165760a94beafbe8277a903032b7eb04c09;hpb=9954b38f64713c5919cf64d31cc3b55576733f47;p=feisty_meow.git diff --git a/scripts/notes/info_overload_report.sh b/scripts/notes/info_overload_report.sh index d4ce6165..6bf78ca6 100644 --- a/scripts/notes/info_overload_report.sh +++ b/scripts/notes/info_overload_report.sh @@ -1,35 +1,56 @@ # these metrics are how bogged down we are in to-do type items. -REPORT_FILE="$HOME/quartz/history_info_overload.txt" +REPORT_FILE="$HOME/cloud/overload_history.txt" -# notes are individual files of tasks, usually, although some are combined. -note_depth=$(find ~/quartz/grunty_notes/ -type f -exec echo \"{}\" ';' | grep -v "\.svn" | grep -v "\.git" | wc -l) +# given a path, this will find how many items are under it, ignoring svn and git files. +function calculate_depth() +{ + local dir="$1"; shift + find "$dir" -type f -exec echo \"{}\" ';' | grep -v "\.svn" | grep -v "\.git" | wc -l | tr -d ' ' +} -# the list files are web documents with to-do lists. individual items are marked with
  • . -item_depth=$(find ~/quartz/grunty_notes/ -type f -iname "*.html" -exec grep ". +item_depth=$(find ~/cloud/grunty_notes/ -type f -iname "*.html" -exec grep "