odd spelling error corrected.
[feisty_meow.git] / scripts / notes / info_overload_report.sh
index 428f4306d690e841e5bbda4f7939778bdc80ea22..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,6 +58,7 @@ 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\
@@ -68,8 +70,6 @@ Current information overload consists of:\n\
   -------\n\
   $total_overload\ttotal items\n\
 \n\
-Gathered On: $(date)\n\
-\n\
 ##############"
 
 echo -e "$report" | tee -a "$REPORT_FILE"