X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fnotes%2Finfo_overload_report.sh;h=57667e6ed8f3dbcf126fc23c2055ecf2a52b59c5;hb=af5f3c3dd22ed040f42a38265b6b5c8cba094b96;hp=6ffe741f4e50f9bdbd1424dab8b8edd057d014d0;hpb=9a51168e5d62ba149117185c4f183bd32525c574;p=feisty_meow.git diff --git a/scripts/notes/info_overload_report.sh b/scripts/notes/info_overload_report.sh index 6ffe741f..57667e6e 100644 --- a/scripts/notes/info_overload_report.sh +++ b/scripts/notes/info_overload_report.sh @@ -3,11 +3,12 @@ REPORT_FILE="$HOME/cloud/overload_history.txt" -# given a path, this will find how many items are under it, ignoring svn and git files. +# 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" | wc -l | tr -d ' ' + 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 ' ' } ############## @@ -23,7 +24,7 @@ unsorted_depth=$(calculate_depth ~/cloud/unsorted) 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 "