getting formatting right.
[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)
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)
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)
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)
18
19 total_overload=$(($note_depth + $item_depth + $project_depth + $source_example_depth))
20
21 report="\
22 We have studied your information overload and find that there are:\n\
23   $note_depth note files\n\
24   $item_depth to-do list items\n\
25   $project_depth project files\n\
26   $source_example_depth source examples\n\
27   -------\n\
28   $total_overload total items\n\
29 Gathered On: $(date)\n\
30 \n\
31 ##############\n\
32 "
33
34 echo -e "$report" | tee -a "$REPORT_FILE"
35