Aqui está um script que faria o mesmo
#! /bin/bash cat years.txt | \ # Read years.txt line by line. Each line is stored in $folder1. while read folder1; do cat type.txt | \ # Read type.txt line by line. Each line is stored in $folder2. while read folder2; do cat month.txt | \ # Read month.txt line by line. Each line is stored in $folder3. while read folder3; do # Create/modify $path variable. path="$folder1/$folder2/$folder3" # Create the directory. mkdir -p "$path" done done done
Alguma ajuda retirada de: link