how to declare for loops in shellscriot code example Example: For loop in shell script for i in `seq 1 10` do echo $i #Do something here. done