Update some work scripts

This commit is contained in:
t0xa 2026-01-19 10:58:54 +03:00
parent 7063c0cab1
commit 30e8f8a7bb

9
scripts/get_day_work.sh Executable file
View 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|.*/||'