trying again

main
Nick Dumas 2 years ago
parent abbf1842c0
commit c21583bfbb

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

Loading…
Cancel
Save