projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nice changes to enable an shunit test to be called without requiring an
[feisty_meow.git]
/
scripts
/
notes
/
info_overload_report.sh
diff --git
a/scripts/notes/info_overload_report.sh
b/scripts/notes/info_overload_report.sh
index 428f4306d690e841e5bbda4f7939778bdc80ea22..57667e6ed8f3dbcf126fc23c2055ecf2a52b59c5 100644
(file)
--- 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"
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
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 <li>.
source_example_depth=$(calculate_depth ~/cloud/example_source)
# the list files are web documents with to-do lists. individual items are marked with <li>.
-item_depth=$(find ~/cloud/grunty_notes/ -type f -iname "*.html" -exec grep "<li" "{}" ';' | wc -l | tr -d ' ')
+
html_
item_depth=$(find ~/cloud/grunty_notes/ -type f -iname "*.html" -exec grep "<li" "{}" ';' | wc -l | tr -d ' ')
# scan across all appropriately named folders in our folders that live in the "cloud".
cloud_project_depth=0
# scan across all appropriately named folders in our folders that live in the "cloud".
cloud_project_depth=0
@@
-52,14
+53,15
@@
done
##############
##############
-total_overload=$(($note_depth + $item_depth + $unsorted_depth + $source_example_depth + $cloud_project_depth + $cloud_trivia_depth + $cloud_active_depth))
+total_overload=$(($note_depth + $
html_
item_depth + $unsorted_depth + $source_example_depth + $cloud_project_depth + $cloud_trivia_depth + $cloud_active_depth))
report="\
\n\
Current information overload consists of:\n\
report="\
\n\
Current information overload consists of:\n\
+[gathered on $(date)]\n\
\n\
$note_depth\tgrunty notes\n\
\n\
$note_depth\tgrunty notes\n\
- $
item_depth\tto-do list items
\n\
+ $
html_item_depth\tto-do notes in html
\n\
$cloud_active_depth\tactive items\n\
$cloud_project_depth\tproject 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\
@@
-68,8
+70,6
@@
Current information overload consists of:\n\
-------\n\
$total_overload\ttotal items\n\
\n\
-------\n\
$total_overload\ttotal items\n\
\n\
-Gathered On: $(date)\n\
-\n\
##############"
echo -e "$report" | tee -a "$REPORT_FILE"
##############"
echo -e "$report" | tee -a "$REPORT_FILE"