bash loop template A bash template for loops. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16#!/bin/bash list1=`seq -w 07 38` n=0 home=$PWD for i in ${list1[*]} do mkdir $i list2=`seq -w 01 10` for j in ${list2[*]} do mkdir $i/$j echo $i $j cd $home done done