trying again

main
Nick Dumas 2 years ago
parent abbf1842c0
commit c21583bfbb

@ -1,9 +1,9 @@
#! /bin/sh #! /bin/sh
notes=$(find $1 -type f -name "*.md") echo "fuck"
for n in $notes; do for noteDir in "$1/notes/*"; do
echo "Sanitizing: $n" echo $noteDir
fn=$(cut -d'.' -f1 $n) noteName=$(echo $noteDir| cut -d'/' -f3)
echo $fn sed -i "#Resources/attachments#notes/$notename#" $noteDir/indx.md
sed -i "#Resources/attachments#notes/$fn#g" $n echo $noteName
done done

Loading…
Cancel
Save