Answer the question
In order to leave comments, you need to log in
How to execute a command from a variable?
Why is the variable not converted to a command, but works fine when entered manually?
how to make it read and executed as a command?
It doesn't work like that
#!/bin/bash
z1={0..38}; z2={39..76}; z3={77..114}; z4={115..152}; z5={153..190} #...
for n in $z{1..99}; do
wget http://domain.com/path/$n.jpeg -P /untitled/1/
done
#!/bin/bash
for i in {0..38}; do; wget http://domain.com/path/$i.jpeg -P /untitled/1/ ; done
ИЛИ
#!/bin/bash
wget http://domain.com/path/{0..38}.jpeg
Answer the question
In order to leave comments, you need to log in
z1={0..38}; z2={39..76}; z3={77..114}; z4={115..152}; z5={153..190} #...
for n in {0..38} {39..76} {77..114} {115..152} {153..190}
do
echo $n
done
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question