Created
January 10, 2022 23:08
-
-
Save mdvsh/4a92276f05631e6d1c42c109fa4301a4 to your computer and use it in GitHub Desktop.
misc files for backing and building notes for eecs 281
This file contains 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 characters
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 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 characters
function syncnotes -d "Copy over EEC281 notes from Obsidian" | |
cp -a ~/Desktop/vault/281notes/. ~/Desktop/code/eecs281/notes/ | |
echo "synced notes from obsidian..." | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment