eolas/utils/rename_img_links.sh

12 lines
242 B
Bash
Raw Normal View History

#!/bin/bash
# Replace all instances of `img` in Markdown image links with `_img` (to reflect new directory structure)
2023-04-17 07:06:21 +01:00
find /home/thomas/repos/eolas/ -type f -name "*.md" | while
read file; do
sed -i 's/\/_img\//\/img\//g' $file
done
2024-02-16 15:19:05 +00:00