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".

有帮助吗?

解决方案

I just did a Loop

for i in {1..50}
do
  wget "$url$i.jpg"
done
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top