ref: dc0f1ae1028206a548cc5fad15631d79c212e48a dir: /sys/doc/mkdirlist/
#!/bin/rc # mkdirlist for(i in $*) if(~ $i */*) basename -d $i