Shell fun with sed and xargs
I cleaned up my life on the road polluted links by running
rg -l 'my path for \[\[Life on the road\]\]' | xargs -I % sed -i '' 's/\[\[Life on the road\]\]/life on the road/g' "%"
The breakdown is that
rg -l 'regexPattern'gets a list of files with the pattern in the current directory (my Obsidian vault)xargs -I % templateCommandreplaces%insidetemplateCommandwith each file passed via stdinsed -i '' 's/search/replace/g filePathreplaces all instances ofsearchwithreplaceinsidefilePath
Helpful for Programming.