From 6bc6be39a59ce9baa97ab0144eff5c92c1a4cc15 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Mon, 2 Apr 2012 15:50:35 -0400 Subject: [PATCH] updated to include files in the cloud folders. --- scripts/notes/info_overload_report.sh | 32 +++++++++++++++++++++------ 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/scripts/notes/info_overload_report.sh b/scripts/notes/info_overload_report.sh index d9275efa..19fa157b 100644 --- a/scripts/notes/info_overload_report.sh +++ b/scripts/notes/info_overload_report.sh @@ -3,20 +3,37 @@ REPORT_FILE="$HOME/quartz/history_info_overload.txt" -# 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 | tr -d ' ') +# given a path, this will find how many items are under it, ignoring svn and git files. +function calculate_depth() +{ + local dir="$1"; shift + find "$dir" -type f -exec echo \"{}\" ';' | grep -v "\.svn" | grep -v "\.git" | wc -l | tr -d ' ' +} -# the list files are web documents with to-do lists. individual items are marked with
  • . -item_depth=$(find ~/quartz/grunty_notes/ -type f -iname "*.html" -exec grep ". +item_depth=$(find ~/quartz/grunty_notes/ -type f -iname "*.html" -exec grep "