only 10 items from today
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
eec9489840
commit
854dd306d6
1 changed files with 7 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue