+plan
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
cb970eabd3
commit
eec9489840
1 changed files with 28 additions and 0 deletions
28
plan-of-week
Executable file
28
plan-of-week
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/sh
|
||||
# Nico Schottelius
|
||||
# 2014-06-08
|
||||
# Show the plan of the week
|
||||
|
||||
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "$0 <directory-with-notes>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dir=$1; shift
|
||||
|
||||
start=1
|
||||
end=7
|
||||
|
||||
day=$start
|
||||
|
||||
while [ "$day" -le "$end" ]; do
|
||||
date="$(date +%F -d "$day days")"
|
||||
file="$HOME/privat/persoenlich/notizen/$date"
|
||||
|
||||
if [ -f "$file" ]; then
|
||||
echo "$date"
|
||||
cat "$file"
|
||||
fi
|
||||
day=$((day+1))
|
||||
done
|
Loading…
Reference in a new issue