only 10 items from today

Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2014-06-10 10:34:23 +02:00
parent eec9489840
commit 854dd306d6
1 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,13 @@ end=7
day=$start
date="$(date +%F)"
file="$HOME/privat/persoenlich/notizen/$date"
if [ -f "$file" ]; then
echo "$date"
head -n 10 "$file"
fi
while [ "$day" -le "$end" ]; do
date="$(date +%F -d "$day days")"
file="$HOME/privat/persoenlich/notizen/$date"