odd spelling error corrected.
[feisty_meow.git] / scripts / notes / info_overload_report.sh
index 6ffe741f4e50f9bdbd1424dab8b8edd057d014d0..80773324f3623277f110fc8389109ada27f3e9bd 100644 (file)
@@ -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 ' '
 }
 
 ##############
@@ -57,19 +58,18 @@ total_overload=$(($note_depth + $item_depth + $unsorted_depth + $source_example_
 report="\
 \n\
 Current information overload consists of:\n\
+[gathered on $(date)]\n\
 \n\
   $note_depth\tgrunty notes\n\
   $item_depth\tto-do list items\n\
-  $unsorted_depth\tunsorted files\n\
-  $source_example_depth\tsource examples\n\
+  $cloud_active_depth\tactive items\n\
   $cloud_project_depth\tproject files\n\
+  $source_example_depth\tsource examples\n\
   $cloud_trivia_depth\ttrivial notes\n\
-  $cloud_active_depth\tactive items\n\
+  $unsorted_depth\tunsorted files\n\
   -------\n\
   $total_overload\ttotal items\n\
 \n\
-Gathered On: $(date)\n\
-\n\
 ##############"
 
 echo -e "$report" | tee -a "$REPORT_FILE"