Created
January 10, 2022 23:08
-
-
Save mdvsh/4a92276f05631e6d1c42c109fa4301a4 to your computer and use it in GitHub Desktop.
Revisions
-
mdvsh created this gist
Jan 10, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ for note in ./notes/*.md; do sed -i -e 's/!\[\[\([^]]*\)\]\]/!\[\[\1\]\]\(https:\/\/github.com\/mdvsh\/eecs281\/blob\/main\/notes\/media\/\1\)/g' $note done find . -name '*.md-e' -exec rm -rf {} \; This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ function syncnotes -d "Copy over EEC281 notes from Obsidian" cp -a ~/Desktop/vault/281notes/. ~/Desktop/code/eecs281/notes/ echo "synced notes from obsidian..." end