for BAR in abc def
do
for BAZ in ghi jkl mno
do
mkdir -p "$BAR.$BAZ/innerdir1"
touch "$BAR.$BAZ/innerfile1"
done
done
criará:
abc.ghi
| - innerdir1
| - innerfile1
abc.jkl
| - innerdir1
| - innerfile1
abc.mno
| - innerdir1
| - innerfile1
def.ghi
| - innerdir1
| - innerfile1
def.jkl
| - innerdir1
| - innerfile1
def.mno
| - innerdir1
| - innerfile1