You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
185 B
Bash
10 lines
185 B
Bash
2 years ago
|
#! /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#" $n
|
||
|
done
|