Korrekturen und Erläuterungen

This commit is contained in:
Ludger Sicking 2025-05-26 13:06:43 +02:00
parent 8fe914363e
commit a5a30394b8
3 changed files with 25 additions and 4 deletions

View file

@ -0,0 +1,21 @@
#!/bin/bash
set -e
# script im root dir ausführen
working_directory=$(basename $(pwd))
if [ "$working_directory" != "FOERBICO" ]; then
echo "not in root dir 'FOERBICO'"
exit 1
fi
find Website/content -type f -name 'index.md' | while read FILE ;
do
#sed -i -s -E 's|^- | - |g' $FILE
sed -i '/^---$/,/^---$/ {
/^- / s/^/ /
}' $FILE
done
#sed '/^---$/,/^---$/ { /^-/ s/^/ / }' input.md
#$sed '/^---$/,/^---$/ { /^- / s/^/ / }' Website/content/posts/2025-04-11-OER-Hochschulreihe-Teil-3/index.md | less