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