ScriptAutomate
01/22/2022, 5:48 PMbash
# Where 'stub: true' is the frontmatter attribute
# and 'repos' are where vaults exist in workspace
grep -irn 'stub: true' repos/*/*.md |
sed 's|repos|\[\[dendron:/|g' |
sed 's:\.md.*:\]\]:g'
Can target just task.*
notes:
bash
# Where 'stub: true' is the frontmatter attribute
# and 'repos' are where vaults exist in workspace
grep -irn 'stub: true' repos/*/task.*.md |
sed 's|repos|\[\[dendron:/|g' |
sed 's:\.md.*:\]\]:g'
Certain path assumptions are being made in these examples, but can be adjusted for your layout.
Output example:
[[dendron://vault1/task.2022.01.10.blog]]
[[dendron://vault2/task.2022.01.10.help-friend-use-can-opener-dear-god-why]]