diff --git a/shell_scripts/logs_extract_last_month b/shell_scripts/logs_extract_last_month index e6e513f..6f9d2cf 100755 --- a/shell_scripts/logs_extract_last_month +++ b/shell_scripts/logs_extract_last_month @@ -1,3 +1,3 @@ #! /usr/bin/env bash -MONTH=`date +%m --date "a month ago"` +MONTH=`date +%Y-%m --date "a month ago"` grep "^$MONTH-" \##pim.log > $MONTH-pim.log diff --git a/shell_scripts/logs_monthly_stats b/shell_scripts/logs_monthly_stats index c82e8af..cffc482 100755 --- a/shell_scripts/logs_monthly_stats +++ b/shell_scripts/logs_monthly_stats @@ -1,2 +1,3 @@ #! /usr/bin/env bash wc -l 20{09,10,11}-* | grep -v total | sed "s/ 2010.*//" | sed "s/ 2009.*//" | sed "s/ 2011.*//" > monthly_lines.data +gnuplot *.plt