bash script to make folders with names from 00 to ff

bash, linux, terminal

Solution

`printf` can format a series of numbers as hex:

mkdir $(printf "%02x " {0..255})

for dir in */
do
  mkdir $(printf "$dir/%02x " {0..255})
done

Problem

I want to make folders with names from 00 to ff(total 256 folders) such that each of them again have folders with names from 00 to ff. What should I write on my terminal?Any suggestions?

Original source