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 ' '
}
##############
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"