X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fnotes%2Finfo_overload_report.sh;h=80773324f3623277f110fc8389109ada27f3e9bd;hb=548ca4258dc705168cf490bccd1d217b66a567f6;hp=46901db55e33eaf724506bb8eaf6e4dc13c21b79;hpb=91f004db645053b907360103b5e0139f1162df14;p=feisty_meow.git diff --git a/scripts/notes/info_overload_report.sh b/scripts/notes/info_overload_report.sh index 46901db5..80773324 100644 --- a/scripts/notes/info_overload_report.sh +++ b/scripts/notes/info_overload_report.sh @@ -1,36 +1,76 @@ # 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" + +# given a path, this will find how many items are under it, ignoring svn and git files, plus +# other patterns we happen to notice are not useful. +function calculate_depth() +{ + local dir="$1"; shift + find "$dir" -type f -exec echo \"{}\" ';' | grep -v "\.svn" | grep -v "\.git"| grep -v "\.basket" | grep -v "\.version" | grep -v "\.keep" | wc -l | tr -d ' ' +} + +############## # 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) +note_depth=$(calculate_depth ~/cloud/grunty_notes) -# projects are slightly more productive, ongoing things that are very active. -project_depth=$(find ~/quartz/projects/ -type f -exec echo \"{}\" ';' | grep -v "\.svn" | grep -v "\.git" | wc -l) +# unsorted files haven't been categorized yet. +unsorted_depth=$(calculate_depth ~/cloud/unsorted) # source examples need to be sucked into other places, other codebases. they are not # supposed to pile up here. -source_example_depth=$(find ~/quartz/example_source_code/ -type f -exec echo \"{}\" ';' | grep -v "\.svn" | grep -v "\.git" | wc -l) +source_example_depth=$(calculate_depth ~/cloud/example_source) + +# the list files are web documents with to-do lists. individual items are marked with
  • . +item_depth=$(find ~/cloud/grunty_notes/ -type f -iname "*.html" -exec grep "