nicer formatting.
[feisty_meow.git] / scripts / notes / info_overload_report.sh
1
2 # these metrics are how bogged down we are in to-do type items.
3
4 REPORT_FILE="$HOME/quartz/history_info_overload.txt"
5
6 # notes are individual files of tasks, usually, although some are combined.
7 note_depth=$(find ~/quartz/grunty_notes/ -type f -exec echo \"{}\" ';' | grep -v "\.svn" | grep -v "\.git" | wc -l | tr -d ' ')
8
9 # the list files are web documents with to-do lists.  individual items are marked with <li>.
10 item_depth=$(find ~/quartz/grunty_notes/ -type f -iname "*.html" -exec grep "<li" "{}" ';' | wc -l | tr -d ' ')
11
12 # projects are slightly more productive, ongoing things that are very active.
13 project_depth=$(find ~/quartz/projects/ -type f -exec echo \"{}\" ';' | grep -v "\.svn" | grep -v "\.git" | wc -l | tr -d ' ')
14
15 # source examples need to be sucked into other places, other codebases.  they are not
16 # supposed to pile up here.
17 source_example_depth=$(find ~/quartz/example_source_code/ -type f -exec echo \"{}\" ';' | grep -v "\.svn" | grep -v "\.git" | wc -l | tr -d ' ')
18
19 total_overload=$(($note_depth + $item_depth + $project_depth + $source_example_depth))
20
21 report="\
22 \n\
23 Current information overload consists of:\n\
24 \n\
25   $note_depth\tnote files\n\
26   $item_depth\tto-do list items\n\
27   $project_depth\tproject files\n\
28   $source_example_depth\tsource examples\n\
29   -------\n\
30   $total_overload\ttotal items\n\
31 \n\
32 Gathered On: $(date)\n\
33 \n\
34 ##############"
35
36 echo -e "$report" | tee -a "$REPORT_FILE"
37