From: Fred T. Hamster Date: Thu, 30 Jan 2025 23:31:36 +0000 (-0500) Subject: added report at end of where the history file is X-Git-Tag: 2.140.189^2~22 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=99e573fe124118050e3d9e5d31b1c965ebc70303;p=feisty_meow.git added report at end of where the history file is --- diff --git a/scripts/agenda/info_overload_report.sh b/scripts/agenda/info_overload_report.sh index 95f19238..0d760353 100644 --- a/scripts/agenda/info_overload_report.sh +++ b/scripts/agenda/info_overload_report.sh @@ -15,6 +15,7 @@ POWER_BRAIN_HIERARCHY="power_brain" function calculate_count() { local dir="$1"; shift +#hmmm: good grief, use an array here. need some kind of pipe chain array handling. local count=$(find "$dir" -type f -exec echo \"{}\" ';' 2>/dev/null | grep -v "\.svn" | grep -v "\.git"| grep -v "\.basket" | grep -v "\.version" | grep -v "\.keep" | wc -l | tr -d ' ') if [ -z "$count" ]; then echo 0; else echo "$count"; fi } @@ -26,6 +27,7 @@ function calculate_count() function calculate_weight() { local dir="$1"; shift +#hmmm: good grief, use an array here. need some kind of pipe chain array handling. local weight=$(find "$dir" -type f -exec echo \"{}\" ';' 2>/dev/null | grep -v "\.svn" | grep -v "\.git"| grep -v "\.basket" | grep -v "\.version" | grep -v "\.keep" | xargs ls -al | awk '{ print $5 }' | paste -sd+ - | bc 2>/dev/null) if [ -z "$weight" ]; then echo 0; else echo "$weight"; fi } @@ -191,4 +193,5 @@ full_report+="\n\ ##############" echo -e "$full_report" | tee -a "$REPORT_FILE" +echo -e "\n{report stored in $REPORT_FILE}"