Für Schleife im Shell -Skript
for i in {1..5}
do
echo "Welcome $i times"
done
Cruel Capybara
for i in {1..5}
do
echo "Welcome $i times"
done
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
for i in `seq 1 10`
do
echo $i #Do something here.
done
for i in `seq 0 2 10`; do echo $i; done