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