dotfiles/.local/bin/scripts/roam

8 lines
460 B
Plaintext
Raw Normal View History

2021-10-08 10:28:22 +00:00
#!/bin/sh -e
# Move roam files into subfolders
cd $DATA/2-standards/notes/roam
grep -l --directories=skip "roam_tags: person" * | xargs --no-run-if-empty mv -t people
grep -l --directories=skip "roam_tags: tech" * | xargs --verbose --no-run-if-empty mv -t tech
grep -l --directories=skip "roam_tags: project" * | xargs --verbose --no-run-if-empty mv -t projects
grep -l --directories=skip "roam_tags: health" * | xargs --verbose --no-run-if-empty mv -t health