for loop in unix terminal code example Example: For loop in shell script for i in `seq 1 10` do echo $i #Do something here. done