X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fnotes%2Finfo_overload_report.sh;h=19fa157b7251e0106fcc5d4a2697e4e78627a7a8;hb=6bc6be39a59ce9baa97ab0144eff5c92c1a4cc15;hp=d959b576e560d5398590c9f6264a8b57b0a75d04;hpb=2199ae33234a12f123458da19bd303d0693fb89d;p=feisty_meow.git diff --git a/scripts/notes/info_overload_report.sh b/scripts/notes/info_overload_report.sh index d959b576..19fa157b 100644 --- a/scripts/notes/info_overload_report.sh +++ b/scripts/notes/info_overload_report.sh @@ -3,33 +3,53 @@ REPORT_FILE="$HOME/quartz/history_info_overload.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 ~/quartz/grunty_notes/ -type f -iname "*.html" -exec grep "