aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-12-29 15:28:13 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-12-29 15:28:13 -0200
commit34cf7e6bca3938e42a4ebd70f4e763d9e356f19c (patch)
tree8868f23c12344e5152af080e8f9de44cb2c167a5
parent387685c4830c8dd29a99d710dfddad843f2bf685 (diff)
downloadutils-calendar-34cf7e6bca3938e42a4ebd70f4e763d9e356f19c.tar.gz
utils-calendar-34cf7e6bca3938e42a4ebd70f4e763d9e356f19c.tar.bz2
Param fix and append-only at 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