eolas/_scripts/rename_img_links.sh

9 lines
250 B
Bash
Raw Normal View History

#!/bin/bash
# Replace all instances of `img` in Markdown image links with `_img` (to reflect new directory structure)
find /home/thomas/repos/computer_science/ -type f -name "*.md" | while
read file; do
sed -i 's/\/img\//\/_img\//g' $file
done