aboutsummaryrefslogtreecommitdiff
path: root/calendar-archive
diff options
context:
space:
mode:
Diffstat (limited to 'calendar-archive')
-rwxr-xr-xcalendar-archive4
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