Created
July 14, 2023 14:20
replace a URL for an image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
input="/tmp/realImages.txt" | |
while IFS= read -r line | |
do | |
bob=$(basename $line) | |
find . -type f -exec sed -i '' -e "s,$line,/images/old/$bob,g" {} \; | |
done < "$input" | |
#while read line | |
#find . -type f -exec sed -e "s/$line/2010/g" {} \;;done < /tmp/realImages.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment