only 10 items from today
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
eec9489840
commit
854dd306d6
|
@ -16,6 +16,13 @@ end=7
|
||||||
|
|
||||||
day=$start
|
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
|
while [ "$day" -le "$end" ]; do
|
||||||
date="$(date +%F -d "$day days")"
|
date="$(date +%F -d "$day days")"
|
||||||
file="$HOME/privat/persoenlich/notizen/$date"
|
file="$HOME/privat/persoenlich/notizen/$date"
|
||||||
|
|
Loading…
Reference in New Issue