Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Create A For Loop In bash

Multiline

bash
for i in {0..11}
do 
  echo "This is ${i}"
done

Single Line

bash
for i in {0..11}; do echo "This is ${i}"; done

Another example :

bash
for i in {1..14}; do ffmpeg -i "1-15sec.mp4" -to ${i} "1-${i}.mp4"; done