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