dotfiles/.local/bin/scripts/roam

9 lines
252 B
Text
Raw Normal View History

2021-10-08 12:28:22 +02:00
#!/bin/sh -e
# Move roam files into subfolders
2021-11-25 13:57:02 +01:00
cd $DATA/2-standards/box
2021-11-11 17:31:53 +01:00
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