for var in item1 item2 ... itemN do command...... done
#!/bin/sh for loop in 1 2 3 do echo "The value is: $loop" done
#!/bin/sh arr=(1 2 3) for i in "${!arr[@]}"; do printf "%s\t%s\n" "$i" "${arr[$i]}" done