So I need your help on how I can change the coding to show the all images.
Code: Select all
For ex. catalog/dia da mãe/Borboleta 1.jpg
Please help me.
Code: Select all
For ex. catalog/dia da mãe/Borboleta 1.jpg
Why isn't it possible? I you are on a flavor of unix (i.e. Linux) it is pretty simple to remove or replace the space in the file name.santanu@citytech wrote: ↑Thu Dec 19, 2024 10:09 pmI have more than 30 folders and 2000 files which have white spaces in many folders and file names. Now it is not possible to edit all of them.
So I need your help on how I can change the coding to show the all images.
Here is a twist: When running on a local server, the white spaces are converted to %20 and the images are displayed, but this is not happening on the server.Code: Select all
For ex. catalog/dia da mãe/Borboleta 1.jpg
Please help me.
cue4cheap not cheap quality
Code: Select all
#!/bin/bash
# Function to replace spaces with %20
replace_spaces() {
find "$1" -depth -name '* *' | while IFS= read -r f ; do
mv -i "$f" "$(dirname "$f")/$(basename "$f"|sed 's/ /%20/g')"
done
}
# Call the function with the directory path
replace_spaces /path/to/your/directory
Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature
The best option would be: give the images correct names (titles).
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
Probably if someone has 1,000 or more images
Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature
Every system (does no matter if Win* or *nix) has tools to rename unlimited images in a batch mode.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Users browsing this forum: No registered users and 14 guests