I just did a Loop
for i in {1..50}
do
wget "$url$i.jpg"
done
Question
I'm using a script that downloads images. I am having issues while running the wget
command with a variable that contains "{" and "}" characters. It transforms into "%7B" and "%7D".
Here is part of the script
wget -nd -H -p -A jpg,jpeg,png,gif -e robots=off "$url"
The "$url"
contains something like "http://webpage.com/di1/dir2/{1..26}.jpg"
.
La solution
I just did a Loop
for i in {1..50}
do
wget "$url$i.jpg"
done