Skip to content

Instantly share code, notes, and snippets.

@lynchjames
Last active May 29, 2024 16:17
Show Gist options
  • Save lynchjames/deec01d283c5c2a0caad78a4f6f6663a to your computer and use it in GitHub Desktop.
Save lynchjames/deec01d283c5c2a0caad78a4f6f6663a to your computer and use it in GitHub Desktop.
Preparing Obsidian vault for pushing to Azure DevOps Wiki
echo 'Copying attachment files into .attachments folder'
cp attachments/* .attachments/
echo 'Updating attachment links'
find . -type f -name "*.md" -print0 | xargs -0 sed -i 's/(attachments\//(\/\.attachments\//g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment