http://www.linuxforums.org – I'll make up some (probably ugly) alternative just to have the script working, but I'd like to ask how it could be done more directly anyway. If that's actually possible, which I'm starting to suspect that is not the case. What I've tried so far: mkdir {1..$numdirs} mkdir {1.."$numdirs"} (HowTos)