質問

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