dotfiles/.local/bin/scripts/roam

5 lines
246 B
Bash
Executable File

#!/bin/sh -e
# Move roam files into subfolders
cd $DATA/2-standards/notes/roam
find . -mindepth 1 -type d -printf '%f\n' | while read dir; do grep -l --directories=skip "#+filetags: :$dir" * | xargs --verbose --no-run-if-empty mv -t "$dir"; done