Eu fiz isso para criar sua estrutura de pastas:
for f in FOLDER\ 1 FOLDER\ 2 FOLDER\ 3
do mkdir -p "$f/TEMP"
touch "$f/.hidden" "$f/somefile"
case "$f" in
(*2) mkdir -p "$f/DATA1/TEMP" "$f/DATA2/TEMP";;
(*3) mkdir -p "$f/DATA1/TEMP"
esac
done
Isso criou uma árvore como:
find .
.
./FOLDER 1
./FOLDER 1/TEMP
./FOLDER 1/.hidden
./FOLDER 1/somefile
./FOLDER 2
./FOLDER 2/TEMP
./FOLDER 2/.hidden
./FOLDER 2/somefile
./FOLDER 2/DATA1
./FOLDER 2/DATA1/TEMP
./FOLDER 2/DATA2
./FOLDER 2/DATA2/TEMP
./FOLDER 3
./FOLDER 3/TEMP
./FOLDER 3/.hidden
./FOLDER 3/somefile
./FOLDER 3/DATA1
./FOLDER 3/DATA1/TEMP
E por último eu fiz ...
find . ! -path './*/*/*' ! -name TEMP -type d
.
./FOLDER 1
./FOLDER 2
./FOLDER 2/DATA1
./FOLDER 2/DATA2
./FOLDER 3
./FOLDER 3/DATA1