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?
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
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With