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