diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-12-29 15:28:13 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-12-29 15:28:13 -0200 |
commit | 34cf7e6bca3938e42a4ebd70f4e763d9e356f19c (patch) | |
tree | 8868f23c12344e5152af080e8f9de44cb2c167a5 | |
parent | 387685c4830c8dd29a99d710dfddad843f2bf685 (diff) | |
download | utils-calendar-34cf7e6bca3938e42a4ebd70f4e763d9e356f19c.tar.gz utils-calendar-34cf7e6bca3938e42a4ebd70f4e763d9e356f19c.tar.bz2 |
Param fix and append-only at calendar-archive
-rwxr-xr-x | calendar-archive | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar-archive b/calendar-archive index ce1f70a..bfa71b9 100755 --- a/calendar-archive +++ b/calendar-archive @@ -7,7 +7,7 @@ CWD="`pwd`" REMINDERS="$HOME/.remind" YEAR_START="2009" -YEAR_END="${1:=`date +%Y`}" +YEAR_END="${1:-`date +%Y`}" REGEXP="" # Setup @@ -19,7 +19,7 @@ for year in `seq $YEAR_START $YEAR_END`; do mkdir -p $REMINDERS/archive/$year for file in *.rem; do - grep " $year " $file > archive/$year/$file + grep " $year " $file >> archive/$year/$file done done |