Answers for "macos terminal for loop"

7

loop bash

years=(2018 2019)
days=(74 274)

for year in "${years[@]}"; do
    for day in $(seq -w ${days[0]} ${days[1]}); do
               echo $year
               echo $day
    done
done
Posted by: Guest on April-13-2020
3

bash script loop

while [ <some test> ]
do
<commands>
done
Posted by: Guest on March-08-2020
0

macos terminal for loop

for i in {1..100}; do echo http://www.example.com/${i}.jpg; done
Posted by: Guest on October-26-2020

Code answers related to "macos terminal for loop"

Browse Popular Code Answers by Language