문제

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