Update some work scripts
This commit is contained in:
parent
7063c0cab1
commit
30e8f8a7bb
1 changed files with 9 additions and 0 deletions
9
scripts/get_day_work.sh
Executable file
9
scripts/get_day_work.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
OBSIDIAN_PATH="/home/user/Documents/t0xa_vault"
|
||||
_TODAY=$(date -d "now" +'%Y-%m-%d')
|
||||
_1_DAYS_AGO=$(date -d "now - 1 days" +'%Y-%m-%d')
|
||||
GREP_STRING="$_TODAY|$_1_DAYS_AGO"
|
||||
|
||||
# grep -rEl "\| ($GREP_STRING)" $OBSIDIAN_PATH | sed 's|.*/||' | sort -u
|
||||
grep -rE "\| ($GREP_STRING)" $OBSIDIAN_PATH | sed 's|.*/||'
|
||||
Loading…
Reference in a new issue